NadekoBot/NadekoBot.Core/Common/Attributes/NadekoCommand.cs

15 lines
380 B
C#
Raw Normal View History

2017-07-17 19:42:36 +00:00
using System.Runtime.CompilerServices;
using Discord.Commands;
using NadekoBot.Core.Services.Impl;
2017-07-17 19:42:36 +00:00
namespace NadekoBot.Common.Attributes
{
public class NadekoCommand : CommandAttribute
{
public NadekoCommand([CallerMemberName] string memberName="") : base(Localization.LoadCommand(memberName.ToLowerInvariant()).Cmd.Split(' ')[0])
{
}
}
}