Table of Contents

Class NameAttribute

Namespace
Discord.Commands
Assembly
Discord.Net.Commands.dll

Marks the public name of a command, module, or parameter.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class NameAttribute : Attribute
Inheritance
NameAttribute
Inherited Members

Constructors

NameAttribute(string)

Marks the public name of a command, module, or parameter with the provided name.

public NameAttribute(string text)

Parameters

text string

The public name of the object.

Properties

Text

Gets the name of the command.

public string Text { get; }

Property Value

string