Browse Source

Remove .ToLower from group name registration (#2024)

tags/3.2.0
Cenk Ergen GitHub 3 years ago
parent
commit
9594ccc6d9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Interactions/Utilities/ApplicationCommandRestUtil.cs

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

@@ -110,7 +110,7 @@ namespace Discord.Interactions

var props = new SlashCommandBuilder
{
Name = moduleInfo.SlashGroupName.ToLower(),
Name = moduleInfo.SlashGroupName,
Description = moduleInfo.Description,
IsDefaultPermission = moduleInfo.DefaultPermission,
}.Build();
@@ -148,7 +148,7 @@ namespace Discord.Interactions
else
return new List<ApplicationCommandOptionProperties>() { new ApplicationCommandOptionProperties
{
Name = moduleInfo.SlashGroupName.ToLower(),
Name = moduleInfo.SlashGroupName,
Description = moduleInfo.Description,
Type = ApplicationCommandOptionType.SubCommandGroup,
Options = options


Loading…
Cancel
Save