From 5d5955b242b818e95f87e042f6763826d39c469a Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Tue, 17 Dec 2024 07:44:41 +0100 Subject: [PATCH] a --- DisCatSharp.CommandsNext/CommandsNextExtension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DisCatSharp.CommandsNext/CommandsNextExtension.cs b/DisCatSharp.CommandsNext/CommandsNextExtension.cs index c8671306a6..643b9876e4 100644 --- a/DisCatSharp.CommandsNext/CommandsNextExtension.cs +++ b/DisCatSharp.CommandsNext/CommandsNextExtension.cs @@ -531,7 +531,7 @@ public CommandContext CreateContext(DiscordMessage msg, string prefix, Command c ChannelId = msg.ChannelId }; - if (cmd != null && (cmd.Module is TransientCommandModule || cmd.Module == null)) + if (cmd != null && cmd.Module is TransientCommandModule or null) { var scope = ctx.Services.CreateScope(); ctx.ServiceScopeContext = new(ctx.Services, scope);