Table of Contents

Class ContextMenuAttribute

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

Represents a DiscordApplicationCommand with the type of User or Message.

[AttributeUsage(AttributeTargets.Method)]
public sealed class ContextMenuAttribute : Attribute
Inheritance
ContextMenuAttribute
Inherited Members

Constructors

ContextMenuAttribute(ApplicationCommandType, string, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a context menu.

ContextMenuAttribute(ApplicationCommandType, string, bool, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as context menu.

ContextMenuAttribute(ApplicationCommandType, string, long, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a context menu.

ContextMenuAttribute(ApplicationCommandType, string, long, bool, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a context menu.

Properties

AllowedContexts

Gets the allowed contexts of this context menu.

DefaultMemberPermissions

Gets this context menu's needed permissions.

DmPermission

Gets whether this context menu can be used in direct messages.

IntegrationTypes

Gets the allowed integration types of this context menu.

IsNsfw

Gets whether this context menu is marked as NSFW.

Name

Gets the name of this context menu.

Type

Gets the type of this context menu.