Skip to content

Commit

Permalink
fix(intents): set to 15 to message content
Browse files Browse the repository at this point in the history
  • Loading branch information
PandaGuerrier authored and LeadcodeDev committed Oct 27, 2023
1 parent c9b59dc commit 70125ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/internal/services/intents/intent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enum Intent {
guildMembers(1 << 1),

/// Allows [Gateway] to receive [GuildBan]s.
guildBans(1 << 2),
guildModeration(1 << 2),

/// Allows [Gateway] to receive [GuildEmoji]s and [GuildSticker]s.
guildEmojisAndStickers(1 << 3),
Expand Down Expand Up @@ -47,7 +47,7 @@ enum Intent {
directMessageTyping(1 << 14),

/// Allows [Gateway] to receive [MessageContent]s without [GuildMember]s.
messageContent(1 << 17),
messageContent(1 << 15),

/// Allows [Gateway] to receive [GuildScheduledEvents]s.
guildScheduledEvents(1 << 16),
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/services/intents/intent_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class IntentBuilder {

/// Creates an [IntentBuilder] with [GuildBan] intents.
IntentBuilder guildBans() {
intents.add(Intent.guildBans);
intents.add(Intent.guildModeration);
return this;
}

Expand Down

0 comments on commit 70125ec

Please sign in to comment.