From 91e4d9dffc63ca78cf500219ca621be94821ff40 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 16 Jun 2022 03:59:32 +0200 Subject: [PATCH] permission commands should now work for global expressions too --- src/NadekoBot/Common/TypeReaders/BotCommandTypeReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Common/TypeReaders/BotCommandTypeReader.cs b/src/NadekoBot/Common/TypeReaders/BotCommandTypeReader.cs index b32b0aa6a..a0359e764 100644 --- a/src/NadekoBot/Common/TypeReaders/BotCommandTypeReader.cs +++ b/src/NadekoBot/Common/TypeReaders/BotCommandTypeReader.cs @@ -48,7 +48,7 @@ public sealed class CommandOrCrTypeReader : NadekoTypeReader { input = input.ToUpperInvariant(); - if (_exprs.ExpressionExists(ctx.Guild?.Id, input)) + if (_exprs.ExpressionExists(ctx.Guild?.Id, input) || _exprs.ExpressionExists(null, input)) return TypeReaderResult.FromSuccess(new CommandOrCrInfo(input, CommandOrCrInfo.Type.Custom)); var cmd = await new CommandTypeReader(_commandHandler, _cmds).ReadAsync(ctx, input);