setPresence method

void setPresence(
  1. PresenceBuilder presenceBuilder
)

Allows to set presence for current shard.

Implementation

void setPresence(PresenceBuilder presenceBuilder) {
  this.send(OPCodes.statusUpdate, presenceBuilder.build());
}