Slash commands in all guilds
const client = new Dotwood.Client({
token: "TOKEN", // Bot token
id: "ID", // Bot id
partials: ['MESSAGE', 'CHANNEL', 'GUILD_MEMBER', 'REACTION'], // Discord partials
intents: [
Discord.Intents.FLAGS.DIRECT_MESSAGES,
Discord.Intents.FLAGS.GUILDS,
Discord.Intents.FLAGS.GUILD_MESSAGES,
Discord.Intents.FLAGS.GUILD_VOICE_STATES,
Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS
], // Discord intents
slashcommands: '/slashcommands', // SlashCommands map
slashcommandsType: 'ALL', // Slash commands in all guilds
})
Slash commands in 1 guild
const client = new Dotwood.Client({
token: "TOKEN", // Bot token
id: "ID", // Bot id
partials: ['MESSAGE', 'CHANNEL', 'GUILD_MEMBER', 'REACTION'], // Discord partials
intents: [
Discord.Intents.FLAGS.DIRECT_MESSAGES,
Discord.Intents.FLAGS.GUILDS,
Discord.Intents.FLAGS.GUILD_MESSAGES,
Discord.Intents.FLAGS.GUILD_VOICE_STATES,
Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS
], // Discord intents
slashcommands: '/slashcommands', // SlashCommands map
slashcommandsType: 'guildID', // Slash commands in 1 guild
})