Skip to content

Commit

Permalink
🔄 Updated discord.js api intents in order to satisfy Discord API v10
Browse files Browse the repository at this point in the history
  • Loading branch information
RobotoLev committed Aug 5, 2022
1 parent 02a6a6a commit a5e2dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/classes/DiscordBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export default class DiscordBot {
const botIntents = new IntentsBitField([
IntentsBitField.Flags.Guilds,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.DirectMessages
IntentsBitField.Flags.DirectMessages,
IntentsBitField.Flags.MessageContent
]);

this.client = new Client({
Expand Down

1 comment on commit a5e2dfb

@idinium96
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh, so this is the only thing that prevents it from responding. I see.
Thank you. I will test it before merging.

Please sign in to comment.