Spaces:
Paused
Paused
File size: 863 Bytes
b1f8189 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
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 }; |