Modifier and Type | Method | Description |
---|---|---|
Guild |
getGuild() |
The Guild to which this PermissionHolder is related
|
java.util.List<Permission> |
getPermissions() |
The Guild-Wide Permissions this PermissionHolder holds.
|
boolean |
hasPermission(java.util.Collection<Permission> permissions) |
Checks whether or not this PermissionHolder has the
Permissions in the provided
Collection<Permission> in the Guild. |
boolean |
hasPermission(Channel channel,
java.util.Collection<Permission> permissions) |
Checks whether or not this PermissionHolder has the
Permissions in the provided
Collection<Permission> in the specified Channel. |
boolean |
hasPermission(Channel channel,
Permission... permissions) |
Checks whether or not this PermissionHolder has the given
Permissions in the specified Channel. |
boolean |
hasPermission(Permission... permissions) |
Checks whether or not this PermissionHolder has the given
Permissions in the Guild. |
Guild getGuild()
java.util.List<Permission> getPermissions()
boolean hasPermission(Permission... permissions)
Permissions
in the Guild.permissions
- Permissions to check for.boolean hasPermission(java.util.Collection<Permission> permissions)
Permissions
in the provided
Collection<Permission>
in the Guild.permissions
- Permissions to check for.EnumSet
boolean hasPermission(Channel channel, Permission... permissions)
Permissions
in the specified Channel.channel
- The Channel
in which to check.permissions
- Permissions to check for.EnumSet
boolean hasPermission(Channel channel, java.util.Collection<Permission> permissions)
Permissions
in the provided
Collection<Permission>
in the specified Channel.channel
- The Channel
in which to check.permissions
- Permissions to check for.