Pix / src /client.ts
cybergamer0123's picture
okay?
b1f8189
raw
history blame contribute delete
863 Bytes
import { Client, GatewayIntentBits, Collection, Partials } from 'discord.js';
export interface CustomClient extends Client {
commands: Collection<string, any>;
slashCommands: Collection<string, any>;
}
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<string, any>();
client.slashCommands = new Collection<string, any>();
export { client };