From 5cc74a3d51adf75db44d7102734ba5f95429be24 Mon Sep 17 00:00:00 2001 From: Hellyson Rodrigo Parteka Date: Wed, 17 Nov 2021 01:48:48 -0300 Subject: [PATCH] fix: add missing `DIRECT_MESSAGES` intent --- src/inversify.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/inversify.config.ts b/src/inversify.config.ts index c6809d2..b45c588 100644 --- a/src/inversify.config.ts +++ b/src/inversify.config.ts @@ -37,6 +37,7 @@ const intents = new Intents(); intents.add(Intents.FLAGS.GUILDS); // To listen for guildCreate event intents.add(Intents.FLAGS.GUILD_MESSAGES); // To listen for messages (messageCreate event) intents.add(Intents.FLAGS.DIRECT_MESSAGE_REACTIONS); // To listen for message reactions (messageReactionAdd event) +intents.add(Intents.FLAGS.DIRECT_MESSAGES); // To receive the prefix message intents.add(Intents.FLAGS.GUILD_VOICE_STATES); // To listen for voice state changes (voiceStateUpdate event) // Bot