Table of Contents

Class DefaultMemberPermissionsAttribute

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Sets the DefaultMemberPermissions of an application command or module.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class DefaultMemberPermissionsAttribute : Attribute
Inheritance
DefaultMemberPermissionsAttribute
Inherited Members

Constructors

DefaultMemberPermissionsAttribute(GuildPermission)

Sets the DefaultMemberPermissions of an application command or module.

public DefaultMemberPermissionsAttribute(GuildPermission permissions)

Parameters

permissions GuildPermission

The default permission required to use this command.

Properties

Permissions

Gets the default permission required to use this command.

public GuildPermission Permissions { get; }

Property Value

GuildPermission