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
id
ulongThe Id of the role or user for this permission.
type
ApplicationCommandPermissionTypeDefines whether the permission effects a user or role.
permission
boolThe permission for this command. True allows the subject to use the command, false does not allow the subject to use the command.