@@ -28,12 +28,27 @@ await configStartup().then((c) => Logger.info("Loading Configuration (2/2).")
2828Logger . info ( "Building DisBot Extended Client." )
2929export 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