Package net.dv8tion.jda.api.entities
Class User.PrimaryGuild
java.lang.Object
net.dv8tion.jda.api.entities.User.PrimaryGuild
- All Implemented Interfaces:
ISnowflake
- Enclosing interface:
User
Represents the information about
User's primary guild-
Constructor Summary
ConstructorsConstructorDescriptionPrimaryGuild(long guildId, boolean identityEnabled, String tag, String badge) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBadge()Returns anImageProxyfor user's server tag badge.The user's server tag badge hashThe URL for the user's server tag badge image.longThe Snowflake id of this entity.getTag()The user's server taginthashCode()booleanIndicates whether the user is displaying the primary guild's server tag.toString()Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
Constructor Details
-
PrimaryGuild
-
-
Method Details
-
getIdLong
public long getIdLong()Description copied from interface:ISnowflakeThe Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getIdLongin interfaceISnowflake- 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
Useris displaying the primary guild's server tag.
-
getTag
The user's server tag- Returns:
- Possibly-null String containing the text of the
User's server tag.
-
getBadgeHash
The user's server tag badge hash- Returns:
- Possibly-null String containing the server tag badge hash.
-
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
Returns anImageProxyfor user's server tag badge.- Returns:
- Possibly-null
ImageProxyofUser's server tag badge. - See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-