-
Notifications
You must be signed in to change notification settings - Fork 0
Permissions
pumbas600 edited this page Jan 3, 2022
·
18 revisions
This service is currently still WIP
It is possible to annotate any action with @Permissions to restrict who can use the action to those who have the specified permissions. If they don't meet the requirements defined by the permissions, then a MessageEmbed will be temporarily displayed to inform you of this.
The @Permissions annotation supports a few different things:
- JDA's built-in
Permissionenum. - Custom, user-defined permissions (Either through permission suppliers or role binding)
- Making the permissions be
OR'd orAND'd together.
- Built-in Commands
- @Command Parameters
- Arguments
- Annotations
- Custom Objects
- Custom TypeParsers
- Slash Commands - W.I.P.
- Pagination - W.I.P