public final class JDAUser extends User
Constructor and Description |
---|
JDAUser(net.dv8tion.jda.api.entities.Member user,
net.dv8tion.jda.api.entities.TextChannel channel) |
Modifier and Type | Method and Description |
---|---|
net.dv8tion.jda.api.entities.TextChannel |
getChannel() |
net.dv8tion.jda.api.entities.Guild |
getGuild() |
net.dv8tion.jda.api.entities.Member |
getMember() |
net.dv8tion.jda.api.entities.User |
getUser() |
boolean |
hasPermission(java.lang.String permission)
Does the user have a specific permission
|
protected void |
sendMessage(java.lang.String message)
Implementation of sending the user a message
|
getId, getName, sendMessage
public JDAUser(net.dv8tion.jda.api.entities.Member user, net.dv8tion.jda.api.entities.TextChannel channel)
protected void sendMessage(java.lang.String message)
User
sendMessage
in class User
message
- Message to sendpublic boolean hasPermission(java.lang.String permission)
User
hasPermission
in class User
permission
- Stringpublic net.dv8tion.jda.api.entities.Member getMember()
public net.dv8tion.jda.api.entities.User getUser()
public net.dv8tion.jda.api.entities.Guild getGuild()
public net.dv8tion.jda.api.entities.TextChannel getChannel()