public interface PermissionOverride
Modifier and Type | Method and Description |
---|---|
java.util.List<Permission> |
getAllowed()
An unmodifiable list of all
Permissions that are specifically allowed by this override. |
int |
getAllowedRaw()
This is the raw binary representation (as a base 10 int) of the permissions allowed by this override.
The integer relates to the offsets used by each Permission . |
Channel |
getChannel()
The
Channel that this PermissionOverride affects. |
java.util.List<Permission> |
getDenied()
An unmodifiable list of all
Permissions that are denied by this override. |
int |
getDeniedRaw()
This is the raw binary representation (as a base 10 int) of the permissions denied by this override.
The integer relates to the offsets used by each Permission . |
Guild |
getGuild()
|
java.util.List<Permission> |
getInherit()
An unmodifiable list of all
Permission that are unaffected by this override. |
int |
getInheritRaw()
This is the raw binary representation (as a base 10 int) of the permissions not affected by this override.
The integer relates to the offsets used by each Permission . |
JDA |
getJDA()
The
JDA instance that this PermissionOverride is related to. |
PermissionOverrideManager |
getManager()
Returns the
PermissionOverrideManager for this PermissionOverride. |
Role |
getRole()
If this
PermissionOverride is an override dealing with
a Role , then this method will return the related Role .Otherwise, this method returns null .Basically: if isRoleOverride() returns false , this returns null . |
User |
getUser()
If this
PermissionOverride is an override dealing with
a User , then this method will return the related User .Otherwise, this method returns null .Basically: if isUserOverride() returns false , this returns null . |
boolean |
isRoleOverride()
Used to determine if this
PermissionOverride relates to
a specific Role . |
boolean |
isUserOverride()
Used to determine if this
PermissionOverride relates to
a specific User . |
int getAllowedRaw()
Permission
.int getInheritRaw()
Permission
.int getDeniedRaw()
Permission
.java.util.List<Permission> getAllowed()
Permissions
that are specifically allowed by this override.Permissions
.java.util.List<Permission> getInherit()
Permission
that are unaffected by this override.Permissions
.java.util.List<Permission> getDenied()
Permissions
that are denied by this override.Permissions
.JDA getJDA()
JDA
instance that this PermissionOverride
is related to.JDA
instance.User getUser()
PermissionOverride
is an override dealing with
a User
, then this method will return the related User
.null
.isUserOverride()
returns false
, this returns null
.User
.Role getRole()
PermissionOverride
is an override dealing with
a Role
, then this method will return the related Role
.null
.isRoleOverride()
returns false
, this returns null
.Role
.Channel getChannel()
Channel
that this PermissionOverride
affects.Channel
that this override is part of.Guild getGuild()
Guild
that the Channel
returned
from getChannel()
is a part of. By inference, this is the Guild
that this PermissionOverride
is part of.Guild
.boolean isUserOverride()
PermissionOverride
relates to
a specific User
.boolean isRoleOverride()
PermissionOverride
relates to
a specific Role
.PermissionOverrideManager getManager()
PermissionOverrideManager
for this PermissionOverride.
In the PermissionOverrideManager, you can modify its permissions.