Constructor DiscordApplicationCommandPermission
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DiscordApplicationCommandPermission(ulong, ApplicationCommandPermissionType, bool)
Initializes a new instance of the DiscordApplicationCommandPermission class.
public DiscordApplicationCommandPermission(ulong id, ApplicationCommandPermissionType type, bool permission)
Parameters
idulongThe Id of the role or user for this permission.
typeApplicationCommandPermissionTypeDefines whether the permission effects a user or role.
permissionboolThe permission for this command. True allows the subject to use the command, false does not allow the subject to use the command.