Table of Contents

Class CommandAttribute

Namespace
DSharpPlus.CommandsNext.Attributes
Assembly
DSharpPlus.CommandsNext.dll

Marks this method as a command.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class CommandAttribute : Attribute
Inheritance
object
Attribute
CommandAttribute

Constructors

CommandAttribute()

Marks this method as a command, using the method's name as command name.

CommandAttribute(string)

Marks this method as a command with specified name.

Properties

Name

Gets the name of this command.