Skip to content

Permissions

pumbas600 edited this page Jan 3, 2022 · 18 revisions

This service is currently still WIP

@Permissions

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:

  1. JDA's built-in Permission enum.
  2. Custom, user-defined permissions (Either through permission suppliers or role binding)
  3. Making the permissions be OR'd or AND'd together.

Custom Permissions

Permission Suppliers

Role Binding

Clone this wiki locally