We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39ef1d3 commit ef70e65Copy full SHA for ef70e65
Commands/GlobalCmds.cs
@@ -142,7 +142,7 @@ await ctx.RespondAsync(
142
List<Command> eligibleCommands = [];
143
foreach (Command? candidateCommand in commandsToSearch)
144
{
145
- var executionChecks = candidateCommand.Attributes.Where(x => x is ContextCheckAttribute) as List<ContextCheckAttribute>;
+ var executionChecks = candidateCommand.Attributes.Where(x => x is ContextCheckAttribute);
146
147
if (executionChecks == null || !executionChecks.Any())
148
0 commit comments