Command limitations - S3nS3IW00/JCommands GitHub Wiki
Most of the limitations handled by Discord and only available in the UI. (Server settings -> Integrations -> Bots and Apps -> Your Bot -> Command Permissions)
Initial permissions
Permissions that required to use the command can be initially set with Command#addPermissions(PermissionType...)
with a list of PermissionType
as parameter. These intial permissions can be overwritten later in the UI. If you want to make the command available only for administrators initially, you can call Command#setOnlyForAdministrators()
method on the command.
DMs
GlobalCommand
can be available in DMs. To enable it GlobalCommand#enableInDMs()
has to be called.