import { Client, GatewayIntentBits, Collection, Partials } from 'discord.js'; export interface CustomClient extends Client { commands: Collection; slashCommands: Collection; } const client: CustomClient = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessageReactions, GatewayIntentBits.GuildMessageTyping, GatewayIntentBits.DirectMessages, GatewayIntentBits.DirectMessageReactions, GatewayIntentBits.DirectMessageTyping, ], partials: [ Partials.Message, Partials.Channel, Partials.Reaction, Partials.GuildMember, Partials.User, ], }) as CustomClient; client.commands = new Collection(); client.slashCommands = new Collection(); export { client };