Table of Contents

Class SlashCommandAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll
[AttributeUsage(AttributeTargets.Method)]
public class SlashCommandAttribute : Attribute
Inheritance
SlashCommandAttribute
Inherited Members

Constructors

SlashCommandAttribute(string, string, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a slash command.

SlashCommandAttribute(string, string, bool, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a slash command.

SlashCommandAttribute(string, string, long, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a slash command.

SlashCommandAttribute(string, string, long, bool, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a slash command.

Properties

AllowedContexts

Gets the allowed contexts of this command.

DefaultMemberPermissions

Gets the needed permission of this command.

Description

Gets the description of this command.

DmPermission

Gets the dm permission of this command.

IntegrationTypes

Gets the allowed integration types of this command.

IsNsfw

Gets whether this command is marked as NSFW.

Name

Gets the name of this command.