Skip to content

Commit

Permalink
feat(client): update intents
Browse files Browse the repository at this point in the history
  • Loading branch information
fieztazica committed May 12, 2024
1 parent 0dbdb1c commit 76a6d6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ const client = new HootClient({
},
shards: 'auto',
intents: [
GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildModeration,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.MessageContent
GatewayIntentBits.GuildVoiceStates
],
partials: [Partials.Channel],
loadMessageCommandListeners: true,
Expand Down
2 changes: 2 additions & 0 deletions src/lib/HootClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export class HootClient extends SapphireClient {
container.distube = distube;

ApplicationCommandRegistries.setDefaultGuildIds(process.env.NODE_ENV === 'development' ? [process.env.DEV_GUILD_ID] : null);

ApplicationCommandRegistries.registries.forEach((r) => r.registerChatInputCommand((b) => b.setDMPermission(false)));
}
}

Expand Down

0 comments on commit 76a6d6c

Please sign in to comment.