using System;
namespace Discord.Commands
{
// Override public name of command/module
///
/// Marks the public name of a command, module, or parameter.
///
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class NameAttribute : Attribute
{
///
/// Gets the name of the command.
///
public string Text { get; }
///
/// Marks the public name of a command, module, or parameter with the provided name.
///
/// The public name of the object.
public NameAttribute(string text)
{
Text = text;
}
}
}