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.getBadge(ImageFormat format) Returns anImageProxyfor user's server tag badge.The user's server tag badge hashThe URL for the user's server tag badge image.getBadgeUrl(ImageFormat format) The 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 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
-
getBadgeHash
The user's server tag badge hash- Returns:
- Possibly-null String containing the server tag badge hash.
-
getBadgeUrl
-
getBadgeUrl
The URL for the user's server tag badge image.- Parameters:
format- The format in which the image should be- Returns:
- Possibly-null String containing the
User's server tag badge url. - Throws:
IllegalArgumentException- If the format isnull- See Also:
-
getBadge
Returns anImageProxyfor user's server tag badge.- Returns:
- Possibly-null
ImageProxyofUser's server tag badge. - See Also:
-
getBadge
Returns anImageProxyfor user's server tag badge.- Parameters:
format- The format in which the image should be- Returns:
- Possibly-null
ImageProxyofUser's server tag badge. - Throws:
IllegalArgumentException- If the format isnull- See Also:
-
equals
-
hashCode
-
toString
-