Class WidgetImpl.MemberImpl
java.lang.Object
net.dv8tion.jda.internal.entities.WidgetImpl.MemberImpl
- All Implemented Interfaces:
Formattable
,IMentionable
,ISnowflake
,Widget.Member
- Enclosing class:
WidgetImpl
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The game that the member is currently playing.Retrieve a Mention for this Entity.Returns anImageProxy
for this user's avatar image.Gets the avatar hash of the member, or null if they do not have an avatar set.Gets the avatar url of the member, or null if they do not have an avatar set.Returns anImageProxy
for this user's default avatar image.Gets the asset id of the member's default avatarGets the url of the member's default avatarGets the discriminator of the memberReturns anImageProxy
for this user's effective avatar image.The URL for the user's avatar image
If they do not have an avatar set, this will return the URL of their default avatarGets the visible name of the member.long
The Snowflake id of this entity.getName()
Returns the username of the memberGets the nickname of the member.Gets the online status of the member.The current voice state of the member.Gets the widget that to which this member belongsint
hashCode()
boolean
isBot()
Returns whether or not the given member is a bot accounttoString()
Methods inherited from interface net.dv8tion.jda.api.entities.IMentionable
formatTo
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
Method Details
-
isBot
public boolean isBot()Description copied from interface:Widget.Member
Returns whether or not the given member is a bot account- Specified by:
isBot
in interfaceWidget.Member
- Returns:
- true if the member is a bot, false otherwise
-
getName
Description copied from interface:Widget.Member
Returns the username of the member- Specified by:
getName
in interfaceWidget.Member
- Returns:
- the username of the member
-
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.
-
getDiscriminator
Description copied from interface:Widget.Member
Gets the discriminator of the member- Specified by:
getDiscriminator
in interfaceWidget.Member
- Returns:
- the never-null discriminator of the member
-
getAvatarId
Description copied from interface:Widget.Member
Gets the avatar hash of the member, or null if they do not have an avatar set.- Specified by:
getAvatarId
in interfaceWidget.Member
- Returns:
- possibly-null String containing the avatar hash of the member
-
getAvatarUrl
Description copied from interface:Widget.Member
Gets the avatar url of the member, or null if they do not have an avatar set.- Specified by:
getAvatarUrl
in interfaceWidget.Member
- Returns:
- possibly-null String containing the avatar url of the member
-
getAvatar
Description copied from interface:Widget.Member
Returns anImageProxy
for this user's avatar image.- Specified by:
getAvatar
in interfaceWidget.Member
- Returns:
- Possibly-null
ImageProxy
of this user's avatar image - See Also:
-
getDefaultAvatarId
Description copied from interface:Widget.Member
Gets the asset id of the member's default avatar- Specified by:
getDefaultAvatarId
in interfaceWidget.Member
- Returns:
- never-null String containing the asset id of the member's default avatar
-
getDefaultAvatarUrl
Description copied from interface:Widget.Member
Gets the url of the member's default avatar- Specified by:
getDefaultAvatarUrl
in interfaceWidget.Member
- Returns:
- never-null String containing the url of the member's default avatar
-
getDefaultAvatar
Description copied from interface:Widget.Member
Returns anImageProxy
for this user's default avatar image.- Specified by:
getDefaultAvatar
in interfaceWidget.Member
- Returns:
- Never-null
ImageProxy
of this user's default avatar image - See Also:
-
getEffectiveAvatarUrl
Description copied from interface:Widget.Member
The URL for the user's avatar image
If they do not have an avatar set, this will return the URL of their default avatar- Specified by:
getEffectiveAvatarUrl
in interfaceWidget.Member
- Returns:
- Never-null String containing the member's effective avatar url.
-
getEffectiveAvatar
Description copied from interface:Widget.Member
Returns anImageProxy
for this user's effective avatar image.- Specified by:
getEffectiveAvatar
in interfaceWidget.Member
- Returns:
- Never-null
ImageProxy
of this user's effective avatar image - See Also:
-
getNickname
Description copied from interface:Widget.Member
Gets the nickname of the member. If they do not have a nickname on the guild, this will return null;- Specified by:
getNickname
in interfaceWidget.Member
- Returns:
- possibly-null String containing the nickname of the member
-
getEffectiveName
Description copied from interface:Widget.Member
Gets the visible name of the member. If they have a nickname set, this will be their nickname. Otherwise, it will be their username.- Specified by:
getEffectiveName
in interfaceWidget.Member
- Returns:
- never-null String containing the member's effective (visible) name
-
getOnlineStatus
Description copied from interface:Widget.Member
Gets the online status of the member. The widget does not show offline members, so this status should never be offline- Specified by:
getOnlineStatus
in interfaceWidget.Member
- Returns:
- the
OnlineStatus
of the member
-
getActivity
Description copied from interface:Widget.Member
The game that the member is currently playing.
This game cannot be a stream. If the user is not currently playing a game, this will return null.- Specified by:
getActivity
in interfaceWidget.Member
- Returns:
- Possibly-null
Activity
containing the game that the member is currently playing.
-
getVoiceState
Description copied from interface:Widget.Member
The current voice state of the member.
If the user is not in voice, this will return a VoiceState with a null channel.- Specified by:
getVoiceState
in interfaceWidget.Member
- Returns:
- never-null VoiceState of the member
-
getWidget
Description copied from interface:Widget.Member
Gets the widget that to which this member belongs- Specified by:
getWidget
in interfaceWidget.Member
- Returns:
- the Widget that holds this member
-
hashCode
public int hashCode() -
equals
-
toString
-