Class UserSnowflakeImpl
java.lang.Object
net.dv8tion.jda.internal.entities.UserSnowflakeImpl
- All Implemented Interfaces:
Formattable
,IMentionable
,ISnowflake
,UserSnowflake
- Direct Known Subclasses:
UserImpl
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from interface net.dv8tion.jda.api.entities.IMentionable
formatTo
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.UserSnowflake
getDefaultAvatar, getDefaultAvatarUrl
-
Constructor Details
-
UserSnowflakeImpl
public UserSnowflakeImpl(long id)
-
-
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.
-
getAsMention
Description copied from interface:IMentionable
Retrieve a Mention for this Entity. For the publicRole
(@everyone), this will return the literal string"@everyone"
.- Specified by:
getAsMention
in interfaceIMentionable
- Returns:
- A resolvable mention.
-
getDefaultAvatarId
Description copied from interface:UserSnowflake
The Discord ID for this user's default avatar image.- Specified by:
getDefaultAvatarId
in interfaceUserSnowflake
- Returns:
- Never-null String containing the user's default avatar id.
-
hashCode
public int hashCode() -
equals
-
toString
-