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:
    Ready
    • Method Detail

      • 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.
      • 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.