2018-03-28 23:34:48 +00:00
|
|
|
|
using System;
|
|
|
|
|
using DeukBot4.MessageHandlers.Permissions;
|
2019-01-31 10:52:08 +00:00
|
|
|
|
using JetBrains.Annotations;
|
2018-03-28 23:34:48 +00:00
|
|
|
|
|
|
|
|
|
namespace DeukBot4.MessageHandlers
|
|
|
|
|
{
|
2018-03-30 14:33:42 +00:00
|
|
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
2019-01-31 10:52:08 +00:00
|
|
|
|
[MeansImplicitUse]
|
2018-03-28 23:34:48 +00:00
|
|
|
|
public class CommandAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
public string Command { get; }
|
|
|
|
|
public PermissionLevel Permission { get; }
|
|
|
|
|
|
|
|
|
|
public CommandAttribute(string command, PermissionLevel permission)
|
|
|
|
|
{
|
|
|
|
|
Command = command;
|
|
|
|
|
Permission = permission;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|