mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Read about the medusa system [here](https://nadekobot.readthedocs.io/en/latest/medusa/creating-a-medusa/)
20 lines
579 B
C#
20 lines
579 B
C#
namespace Nadeko.Snake;
|
|
|
|
/// <summary>
|
|
/// Sets the priority of a command in case there are multiple commands with the same name but different parameters.
|
|
/// Higher value means higher priority.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
public class prioAttribute : Attribute
|
|
{
|
|
public int Priority { get; }
|
|
|
|
/// <summary>
|
|
/// Snek command priority
|
|
/// </summary>
|
|
/// <param name="priority">Priority value. The higher the value, the higher the priority</param>
|
|
public prioAttribute(int priority)
|
|
{
|
|
Priority = priority;
|
|
}
|
|
} |