Browse Source

Return a list instead of an array

pull/2451/head
Damian Kraaijeveld 2 years ago
parent
commit
932e6424d6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Interactions/Utilities/CommandHierarchy.cs

+ 2
- 2
src/Discord.Net.Interactions/Utilities/CommandHierarchy.cs View File

@@ -26,7 +26,7 @@ namespace Discord.Interactions
public static IList<string> GetCommandPath(this ICommandInfo commandInfo)
{
if (commandInfo.IgnoreGroupNames)
return new string[] { commandInfo.Name };
return new List<string> { commandInfo.Name };

var path = commandInfo.Module.GetModulePath();
path.Add(commandInfo.Name);
@@ -48,6 +48,6 @@ namespace Discord.Interactions
}

public static IList<string> GetTypePath(Type type) =>
new string[] { EscapeChar + type.FullName };
new List<string> { EscapeChar + type.FullName };
}
}

Loading…
Cancel
Save