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 TypeMethodDescriptionboolean
getBadge()
Returns anImageProxy
for user's server tag badge.The user's server tag badge hashThe URL for the user's server tag badge image.long
The Snowflake id of this entity.getTag()
The user's server tagint
hashCode()
boolean
Indicates 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:ISnowflake
The Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getIdLong
in 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
User
is 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 anImageProxy
for user's server tag badge.- Returns:
- Possibly-null
ImageProxy
ofUser
's server tag badge. - See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-