Skip to content

Commit

Permalink
update default activity
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Oct 14, 2023
1 parent c08bcb8 commit 2d203f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/vc/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import discord4j.core.GatewayDiscordClient;
import discord4j.core.object.presence.ClientActivity;
import discord4j.core.object.presence.ClientPresence;
import discord4j.core.object.presence.Status;
import discord4j.gateway.intent.IntentSet;
import discord4j.rest.RestClient;
import org.springframework.beans.factory.annotation.Value;
Expand All @@ -29,7 +30,7 @@ public GatewayDiscordClient gatewayDiscordClient() {
return DiscordClientBuilder.create(token).build()
.gateway()
.setEnabledIntents(IntentSet.none())
.setInitialPresence(ignore -> ClientPresence.online(ClientActivity.listening("/commands")))
.setInitialPresence(ignore -> ClientPresence.of(Status.ONLINE, ClientActivity.custom("/commands")))
.login()
.block();
}
Expand Down

0 comments on commit 2d203f3

Please sign in to comment.