Class ReadyEvent.Guild

java.lang.Object
discord4j.core.event.domain.lifecycle.ReadyEvent.Guild
Enclosing class:
ReadyEvent

public static class ReadyEvent.Guild extends Object
An incomplete Guild provided by Discord upon the ready event.
  • Constructor Details

    • Guild

      public Guild(long id, boolean available)
  • Method Details

    • getId

      public Snowflake getId()
      Gets the Snowflake ID of the guild.
      Returns:
      the Snowflake ID of the guild.
    • isAvailable

      public boolean isAvailable()
      Whether or not the Guild has been made available via a GuildCreateEvent
      Returns:
      Whether or not the Guild has been made available yet.
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object