CommandPermissionBuilderAbstract.role constructor
CommandPermissionBuilderAbstract.role(
- Snowflake id, {
- bool hasPermission = true,
A permission for a single role that can be used in SlashCommandBuilder
Implementation
factory CommandPermissionBuilderAbstract.role(Snowflake id, {bool hasPermission = true}) => RoleCommandPermissionBuilder(id, hasPermission: hasPermission);