Table of Contents

Constructor ApplicationCommandRequireUserPermissionsAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

ApplicationCommandRequireUserPermissionsAttribute(Permissions, bool)

Defines that usage of this command is restricted to members with specified permissions.

public ApplicationCommandRequireUserPermissionsAttribute(Permissions permissions, bool ignoreDms = true)

Parameters

permissions Permissions

Permissions required to execute this command.

ignoreDms bool

Sets this check's behaviour in DMs. True means the check will always pass in DMs, whereas false means that it will always fail.