Table of Contents

Constructor DiscordApplicationCommandPermission

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DiscordApplicationCommandPermission(DiscordRole, bool)

Represents a permission for a application command.

public DiscordApplicationCommandPermission(DiscordRole role, bool permission)

Parameters

role DiscordRole

The role to construct the permission for.

permission bool

Whether the command should be enabled for the role.

DiscordApplicationCommandPermission(DiscordMember, bool)

Represents a permission for a application command.

public DiscordApplicationCommandPermission(DiscordMember member, bool permission)

Parameters

member DiscordMember

The member to construct the permission for.

permission bool

Whether the command should be enabled for the role.