Remove .ToLower from group name registration (#2024)
This commit is contained in:
@@ -110,7 +110,7 @@ namespace Discord.Interactions
|
|||||||
|
|
||||||
var props = new SlashCommandBuilder
|
var props = new SlashCommandBuilder
|
||||||
{
|
{
|
||||||
Name = moduleInfo.SlashGroupName.ToLower(),
|
Name = moduleInfo.SlashGroupName,
|
||||||
Description = moduleInfo.Description,
|
Description = moduleInfo.Description,
|
||||||
IsDefaultPermission = moduleInfo.DefaultPermission,
|
IsDefaultPermission = moduleInfo.DefaultPermission,
|
||||||
}.Build();
|
}.Build();
|
||||||
@@ -148,7 +148,7 @@ namespace Discord.Interactions
|
|||||||
else
|
else
|
||||||
return new List<ApplicationCommandOptionProperties>() { new ApplicationCommandOptionProperties
|
return new List<ApplicationCommandOptionProperties>() { new ApplicationCommandOptionProperties
|
||||||
{
|
{
|
||||||
Name = moduleInfo.SlashGroupName.ToLower(),
|
Name = moduleInfo.SlashGroupName,
|
||||||
Description = moduleInfo.Description,
|
Description = moduleInfo.Description,
|
||||||
Type = ApplicationCommandOptionType.SubCommandGroup,
|
Type = ApplicationCommandOptionType.SubCommandGroup,
|
||||||
Options = options
|
Options = options
|
||||||
|
|||||||
Reference in New Issue
Block a user