permissions property Null safety

Future<Iterable<CommandPermissionBuilderAbstract>> permissions
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:

Implementation

@override
Future<Iterable<CommandPermissionBuilderAbstract>> get permissions => Future.value([]);