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, sendMessagepublic JDAUser(net.dv8tion.jda.api.entities.Member user,
net.dv8tion.jda.api.entities.TextChannel channel)
protected void sendMessage(java.lang.String message)
UsersendMessage in class Usermessage - Message to sendpublic boolean hasPermission(java.lang.String permission)
UserhasPermission in class Userpermission - 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()