Skip to content

Commit 90683a2

Browse files
authored
Fix DefaultShardManagerBuilder#setDisabledIntents (#2785)
Continuation of ee7b6b9
1 parent 5141a94 commit 90683a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/dv8tion/jda/api/sharding/DefaultShardManagerBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,7 @@ public DefaultShardManagerBuilder setDisabledIntents(@Nullable Collection<Gatewa
20182018
{
20192019
this.intents = GatewayIntent.ALL_INTENTS;
20202020
if (intents != null)
2021-
this.intents = 1 | ~GatewayIntent.getRaw(intents);
2021+
this.intents = 1 | (GatewayIntent.ALL_INTENTS & ~GatewayIntent.getRaw(intents));
20222022
return this;
20232023
}
20242024

0 commit comments

Comments
 (0)