CommandPermissionBuilderAbstract.user constructor

CommandPermissionBuilderAbstract.user(
  1. Snowflake id, {
  2. bool hasPermission = true,
})

A permission for a single user that can be used in SlashCommandBuilder

Implementation

factory CommandPermissionBuilderAbstract.user(Snowflake id, {bool hasPermission = true}) => UserCommandPermissionBuilder(id, hasPermission: hasPermission);