Class DefaultMemberPermissionsAttribute
Sets the DefaultMemberPermissions of an application command or module.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class DefaultMemberPermissionsAttribute : Attribute
Constructors
| Improve this Doc View SourceDefaultMemberPermissionsAttribute(GuildPermission)
Sets the DefaultMemberPermissions of an application command or module.
Declaration
public DefaultMemberPermissionsAttribute(GuildPermission permissions)
Parameters
Type | Name | Description |
---|---|---|
GuildPermission | permissions | The default permission required to use this command. |
Properties
| Improve this Doc View SourcePermissions
Gets the default permission required to use this command.
Declaration
public GuildPermission Permissions { get; }
Property Value
Type | Description |
---|---|
GuildPermission |