Class ReadyEvent


public class ReadyEvent extends GatewayLifecycleEvent
Dispatched when an initial connection to the Discord gateway has been established.

This event is dispatched by Discord.

See Also:
  • Constructor Details

  • Method Details

    • getData

      public discord4j.discordjson.json.gateway.Ready getData()
    • getGatewayVersion

      public int getGatewayVersion()
      Gets the gateway protocol version being used. Ex. 6.
      Returns:
      The gateway protocol version being used.
    • getSelf

      public User getSelf()
      Gets the bot User.
      Returns:
      The bot User.
    • getGuilds

      public Set<ReadyEvent.Guild> getGuilds()
      Gets a set of Unavailable ReadyEvent.Guild. These Guilds have not yet been provided via a GuildCreateEvent
      Returns:
      A set of unavailable Guilds.
      See Also:
    • getSessionId

      public String getSessionId()
      Gets the current session ID of the connection.
      Returns:
      the session ID of the connection
    • getTrace

      public List<String> getTrace()
      Gets the trace provided by Discord. Used for debugging - The Guilds the user is in.
      Returns:
      The trace provided by Discord.
    • toString

      public String toString()
      Overrides:
      toString in class Object