requiredPermissions property

  1. @override
Flags<Permissions>? requiredPermissions
override

The permissions required from members to pass this check.

If this is null (or Future<Null>), all members will be allowed to execute the command.

Members that do not have at least one of these permissions will see the command as unavailable in their Discord client. However, users might still execute a text ChatCommand, so further validation in the check itself is required.

You might also be interested in:

  • allowsDm, for controlling whether a command can be executed in a DM;
  • Permissions, for finding the integer that represents a certain permission.

Implementation

@override
Flags<Permissions>? get requiredPermissions => null;