mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
30 lines
748 B
C#
30 lines
748 B
C#
using System.Runtime.CompilerServices;
|
|
|
|
namespace NadekoBot.Common.Attributes;
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
internal sealed class NadekoModuleAttribute : GroupAttribute
|
|
{
|
|
public NadekoModuleAttribute(string moduleName)
|
|
: base(moduleName)
|
|
{
|
|
}
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
internal sealed class NadekoDescriptionAttribute : SummaryAttribute
|
|
{
|
|
public NadekoDescriptionAttribute([CallerMemberName] string name = "")
|
|
: base(name.ToLowerInvariant())
|
|
{
|
|
}
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
internal sealed class NadekoUsageAttribute : RemarksAttribute
|
|
{
|
|
public NadekoUsageAttribute([CallerMemberName] string name = "")
|
|
: base(name.ToLowerInvariant())
|
|
{
|
|
}
|
|
} |