namespace EllieBot.Marmalade;
/// <summary>
/// Marks a method as a snek command
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class cmdAttribute : Attribute
{
/// Command description. Avoid using, as cmds.yml is preferred
public string? desc { get; set; }
/// Command args examples. Avoid using, as cmds.yml is preferred
public string[]? args { get; set; }
/// Command aliases
public string[] Aliases { get; }
public cmdAttribute()
desc = null;
args = null;
Aliases = Array.Empty<string>();
}
public cmdAttribute(params string[] aliases)
Aliases = aliases;