public interface Member extends IMentionable, IPermissionHolder
Contains all guild-specific information about a User. (Roles, Nickname, VoiceStatus etc.)
Modifier and Type | Method and Description |
---|---|
boolean |
canInteract(Emote emote) |
boolean |
canInteract(Member member) |
boolean |
canInteract(Role role) |
java.awt.Color |
getColor()
The
Color of this Member's name in a Guild. |
java.lang.String |
getEffectiveName()
Retrieves the Name displayed in the official Discord Client.
|
Game |
getGame()
The game that the user is currently playing.
|
Guild |
getGuild()
The Guild in which this Member is represented.
|
JDA |
getJDA()
The JDA instance.
|
java.time.OffsetDateTime |
getJoinDate()
The
Time this Member joined the Guild. |
java.lang.String |
getNickname()
Returns the current nickname of this Member for the parent Guild.
|
OnlineStatus |
getOnlineStatus()
|
java.util.List<Permission> |
getPermissions(Channel channel)
The Permissions this PermissionHolder holds in the specified
Channel .Permissions returned by this may be different from IPermissionHolder.getPermissions() due to the Channel's PermissionOverrides . |
java.util.List<Role> |
getRoles()
The roles applied to this Member.
|
User |
getUser()
The user wrapped by this Entity.
|
GuildVoiceState |
getVoiceState()
The
VoiceState of this Member. |
boolean |
isOwner()
Checks whether this member is the owner of its related
Guild . |
getAsMention
getPermissions, hasPermission, hasPermission, hasPermission, hasPermission
Guild getGuild()
getGuild
in interface IPermissionHolder
Guild
JDA getJDA()
java.time.OffsetDateTime getJoinDate()
Time
this Member joined the Guild.GuildVoiceState getVoiceState()
VoiceState
of this Member.This can be used to get the Member's VoiceChannel.
VoiceState
Game getGame()
OnlineStatus getOnlineStatus()
OnlineStatus
of the User
.java.lang.String getNickname()
java.lang.String getEffectiveName()
java.util.List<Role> getRoles()
Roles
for this Member.java.awt.Color getColor()
Color
of this Member's name in a Guild.
This is determined by the color of the highest role assigned to them that does not have the default color.
If all roles have default color, this returns null.
java.util.List<Permission> getPermissions(Channel channel)
Channel
.IPermissionHolder.getPermissions()
due to the Channel's PermissionOverrides
.channel
- The Channel
of which to get Permissions forboolean canInteract(Member member)
boolean canInteract(Role role)
boolean canInteract(Emote emote)
boolean isOwner()
Guild
.