Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Dec 17, 2024
1 parent 647cdeb commit 5d5955b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DisCatSharp.CommandsNext/CommandsNextExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5d5955b

Please sign in to comment.