Table of Contents

Class ContextCommandAttribute

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

Base attribute for creating a Context Commands.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public abstract class ContextCommandAttribute : Attribute
Inheritance
ContextCommandAttribute
Derived
Inherited Members

Properties

CommandType

Gets the type of this Context Command.

public ApplicationCommandType CommandType { get; }

Property Value

ApplicationCommandType

Name

Gets the name of this Context Command.

public string Name { get; }

Property Value

string

RunMode

Gets the run mode this command gets executed with.

public RunMode RunMode { get; }

Property Value

RunMode