Interface Ready

All Superinterfaces:
Entity
All Known Implementing Classes:
ReadyImpl

public interface Ready extends Entity
Fired when a shard logs in successfully.
Since:
10/4/18.
Author:
amy
  • Method Details

    • version

      @Nonnegative int version()
      Returns:
      The websocket gateway version.
    • user

      @Nonnull User user()
      Returns:
      The user who logged in.
    • guilds

      @Nonnull Set<UnavailableGuild> guilds()
      Returns:
      The list of guild snowflakes for the guilds that this shard is in.
    • shardId

      @Nonnegative int shardId()
      Returns:
      The id of the shard that received this event.
    • shardCount

      @Nonnegative int shardCount()
      Returns:
      The total number of shards connected.