Skip to content

Commit 1a0914a

Browse files
author
xyzjesper
committed
Change GatewayIntentBits
1 parent fdd272d commit 1a0914a

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

src/main/bot.ts

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,27 @@ await configStartup().then((c) => Logger.info("Loading Configuration (2/2).")
2828
Logger.info("Building DisBot Extended Client.")
2929
export const disbotClient = new ExtendedClient(
3030
{
31-
intents: Object.keys(GatewayIntentBits).map(key => {
32-
if (GatewayIntentBits[key] == GatewayIntentBits.GuildPresences) {
33-
return []
34-
} else
35-
return GatewayIntentBits[key]
36-
}),
31+
intents: [
32+
GatewayIntentBits.GuildMembers,
33+
GatewayIntentBits.MessageContent,
34+
GatewayIntentBits.Guilds,
35+
GatewayIntentBits.GuildMembers,
36+
GatewayIntentBits.GuildIntegrations,
37+
GatewayIntentBits.GuildWebhooks,
38+
GatewayIntentBits.GuildInvites,
39+
GatewayIntentBits.GuildVoiceStates,
40+
GatewayIntentBits.GuildMessages,
41+
GatewayIntentBits.GuildMessageReactions,
42+
GatewayIntentBits.GuildMessageTyping,
43+
GatewayIntentBits.DirectMessages,
44+
GatewayIntentBits.DirectMessageReactions,
45+
GatewayIntentBits.DirectMessageTyping,
46+
GatewayIntentBits.MessageContent,
47+
GatewayIntentBits.GuildScheduledEvents,
48+
GatewayIntentBits.AutoModerationConfiguration,
49+
GatewayIntentBits.GuildModeration,
50+
GatewayIntentBits.GuildMessagePolls,
51+
],
3752
partials: Object.keys(Partials).map(key => Partials[key]),
3853
})
3954

0 commit comments

Comments
 (0)