Table of Contents

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 ulong

The Id of the role or user for this permission.

type ApplicationCommandPermissionType

Defines whether the permission effects a user or role.

permission bool

The permission for this command. True allows the subject to use the command, false does not allow the subject to use the command.