public interface Role
Modifier and Type | Method and Description |
---|---|
int |
getColor()
The color this
Role is displayed in. |
Guild |
getGuild()
Returns the
Guild this Role exists in |
java.lang.String |
getId()
The ID of this
Role . |
JDA |
getJDA()
Returns the
JDA instance of this Role |
RoleManager |
getManager()
Returns the
RoleManager for this Role. |
java.lang.String |
getName()
The Name of the
Role . |
java.util.List<Permission> |
getPermissions()
A list of the literal
Permissions that this Role has.NOTE: these do not necessarily represent the permissions this role will have in a Channel . |
int |
getPermissionsRaw()
|
int |
getPosition()
|
boolean |
hasPermission(Permission perm)
Checks if this
Role a
Guild level Permission .This does not check the Channel-specific override Permission . |
boolean |
isGrouped()
Is this
Role grouped?(Users with this Role are grouped in the online-list) |
boolean |
isManaged()
Is this
Role managed?(Via plugins like Twitch). |
int getPosition()
Role
in the Guild
hierarchy.Role
always return -1Role
as integer.java.lang.String getName()
Role
.Role
.boolean isManaged()
Role
managed?Role
is managed.boolean isGrouped()
Role
grouped?Role
is grouped.java.lang.String getId()
Role
.Role
.int getPermissionsRaw()
int
representation of the literal permissions that this Role
has.Channel
.java.util.List<Permission> getPermissions()
Permissions
that this Role
has.Channel
.int getColor()
Role
is displayed in.boolean hasPermission(Permission perm)
Role
a
Guild
level Permission
.Permission
.perm
- The Permission
to check forPermission
is available to this Role
Guild getGuild()
Guild
this Role exists inRoleManager getManager()
RoleManager
for this Role.
In the RoleManager, you can modify all its values.