Skip to content

Commit

Permalink
Fix DefaultShardManagerBuilder#setDisabledIntents (#2785)
Browse files Browse the repository at this point in the history
Continuation of ee7b6b9
  • Loading branch information
freya022 authored Dec 27, 2024
1 parent 5141a94 commit 90683a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ public DefaultShardManagerBuilder setDisabledIntents(@Nullable Collection<Gatewa
{
this.intents = GatewayIntent.ALL_INTENTS;
if (intents != null)
this.intents = 1 | ~GatewayIntent.getRaw(intents);
this.intents = 1 | (GatewayIntent.ALL_INTENTS & ~GatewayIntent.getRaw(intents));
return this;
}

Expand Down

0 comments on commit 90683a2

Please sign in to comment.