From df3e60b61f8816b917c2f1ae56156e70f8d7b26e Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 2 Jan 2022 17:16:15 +0100 Subject: [PATCH] .h cmdName should now work correctly for all commands --- src/NadekoBot/Common/Attributes/NadekoModuleAttribute.cs | 4 ++-- src/NadekoBot/data/aliases.yml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Common/Attributes/NadekoModuleAttribute.cs b/src/NadekoBot/Common/Attributes/NadekoModuleAttribute.cs index 48d506d9c..4288bd3b2 100644 --- a/src/NadekoBot/Common/Attributes/NadekoModuleAttribute.cs +++ b/src/NadekoBot/Common/Attributes/NadekoModuleAttribute.cs @@ -15,7 +15,7 @@ internal sealed class NadekoModuleAttribute : GroupAttribute internal sealed class NadekoDescriptionAttribute : SummaryAttribute { public NadekoDescriptionAttribute([CallerMemberName] string name = "") - : base(name) + : base(name.ToLowerInvariant()) { } } @@ -24,7 +24,7 @@ internal sealed class NadekoDescriptionAttribute : SummaryAttribute internal sealed class NadekoUsageAttribute : RemarksAttribute { public NadekoUsageAttribute([CallerMemberName] string name = "") - : base(name) + : base(name.ToLowerInvariant()) { } } \ No newline at end of file diff --git a/src/NadekoBot/data/aliases.yml b/src/NadekoBot/data/aliases.yml index 58a8fcbef..f7590d10e 100644 --- a/src/NadekoBot/data/aliases.yml +++ b/src/NadekoBot/data/aliases.yml @@ -1212,12 +1212,16 @@ exprreact: - exreact - exr exprad: + - exprad - exad exprat: + - exprat - exat exprdm: + - exprdm - exdm exprca: + - exprca - exca exprsreload: - expreload