permissions property Null safety
override
The set of Discord Slash Command Permissions this check represents.
Any ICommand (excluding text-only ChatCommands) will have the permissions from all the checks on that command applied through the Discord Slash Command API. This can allow users to see whether a command is executable from within their Discord client, instead of nyxx_commands rejecting the command once received.
A CommandPermissionBuilderAbstract with a target ID of 0
will be considered to be the
default permission for this check.
You might also be interested in:
- CommandPermissionBuilderAbstract.role, for creating slash command permissions that apply to a given role;
- CommandPermissionBuilderAbstract.user, for creating slash command permissions that apply to a given user.
Implementation
@override
Future<Iterable<CommandPermissionBuilderAbstract>> get permissions => Future.value([]);