setPresence method
Sets presence for bot.
Code below will display bot presence as Playing Super duper game
:
bot.setPresence(game: Activity.of("Super duper game"))
Bots cannot set custom status - only game, listening and stream available.
To set bot presence to streaming use:
bot.setPresence(game: Activity.of("Super duper game", type: ActivityType.streaming, url: "https://twitch.tv/l7ssha"))
url
property in Activity
can be only set when type is set to streaming
Implementation
void setPresence(PresenceBuilder presenceBuilder) {
this.shardManager.setPresence(presenceBuilder);
}