Class User.PrimaryGuild

java.lang.Object
net.dv8tion.jda.api.entities.User.PrimaryGuild
All Implemented Interfaces:
ISnowflake
Enclosing interface:
User

public static class User.PrimaryGuild extends Object implements ISnowflake
Represents the information about User's primary guild
  • Constructor Details

    • PrimaryGuild

      public PrimaryGuild(long guildId, boolean identityEnabled, String tag, String badge)
  • Method Details

    • getIdLong

      public long getIdLong()
      Description copied from interface: ISnowflake
      The Snowflake id of this entity. This is unique to every entity and will never change.
      Specified by:
      getIdLong in interface ISnowflake
      Returns:
      Long containing the Id.
    • isIdentityEnabled

      public boolean isIdentityEnabled()
      Indicates whether the user is displaying the primary guild's server tag.
      Returns:
      Boolean indicating whether the User is displaying the primary guild's server tag.
    • getTag

      @Nullable public String getTag()
      The user's server tag
      Returns:
      Possibly-null String containing the text of the User's server tag.
    • getBadgeHash

      @Nullable public String getBadgeHash()
      The user's server tag badge hash
      Returns:
      Possibly-null String containing the server tag badge hash.
    • getBadgeUrl

      @Nullable public String getBadgeUrl()
      The URL for the user's server tag badge image.
      Returns:
      Possibly-null String containing the User's server tag badge url.
      See Also:
    • getBadge

      @Nullable public ImageProxy getBadge()
      Returns an ImageProxy for user's server tag badge.
      Returns:
      Possibly-null ImageProxy of User's server tag badge.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object