Skip to content

Commit c12f6db

Browse files
committed
Actually include necessary intents
1 parent d22fcf3 commit c12f6db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/tc/oc/occ/nitro/discord/DiscordBot.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ public void enable() {
3434
new DiscordApiBuilder()
3535
.setToken(config.getToken())
3636
.setWaitForServersOnStartup(false)
37-
.setIntents(Intent.GUILD_MEMBERS)
38-
.setAllIntents()
37+
.setIntents(Intent.GUILDS, Intent.GUILD_MEMBERS, Intent.GUILD_PRESENCES, Intent.GUILD_MESSAGES)
3938
.login()
4039
.thenAcceptAsync(
4140
api -> {

0 commit comments

Comments
 (0)