update namespaces and some enums

This commit is contained in:
13xforever
2025-03-09 10:25:55 +05:00
parent 001dd8840b
commit 29c2bef51a
28 changed files with 146 additions and 116 deletions

View File

@@ -44,7 +44,7 @@ public class AttributeUsageAnalyzer : DiagnosticAnalyzer
var hasGroupCommand = false;
foreach (var attr in methodAttributes)
if (IsDescendantOfAttribute(attr, "DSharpPlus.CommandsNext.Attributes.GroupCommandAttribute"))
if (IsDescendantOfAttribute(attr, "DSharpPlus.Commands.Attributes.GroupCommandAttribute"))
{
hasGroupCommand = true;
break;
@@ -54,7 +54,7 @@ public class AttributeUsageAnalyzer : DiagnosticAnalyzer
return;
foreach (var attr in methodAttributes)
if (IsDescendantOfAttribute(attr, "DSharpPlus.CommandsNext.Attributes.CheckBaseAttribute"))
if (IsDescendantOfAttribute(attr, "DSharpPlus.Commands.Attributes.CheckBaseAttribute"))
{
var attrLocation = attr.ApplicationSyntaxReference?.SyntaxTree.GetLocation(attr.ApplicationSyntaxReference.Span);
var diagnostic = Diagnostic.Create(AccessCheckAttributeOnGroupCommandRule, attrLocation ?? methodSymbol.Locations[0], attr.AttributeClass?.Name ?? methodSymbol.Name);