mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 01:08:26 -04:00
22 lines
613 B
C#
22 lines
613 B
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using Discord.Commands;
|
|
using NadekoBot.Core.Services.Impl;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace NadekoBot.Common.Attributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
public sealed class UsageAttribute : RemarksAttribute
|
|
{
|
|
// public static string GetUsage(string memberName)
|
|
// {
|
|
// var usage = Localization.LoadCommand(memberName.ToLowerInvariant()).Usage;
|
|
// return JsonConvert.SerializeObject(usage);
|
|
// }
|
|
public UsageAttribute(string text = "") : base(text)
|
|
{
|
|
}
|
|
}
|
|
}
|