Discord.Net
Discord.Net copied to clipboard
[Bug]: Adding new choice to already registered command does not work
Check The Docs
- [x] I double checked the docs and couldn't find any useful information.
Verify Issue Source
- [x] I verified the issue was caused by Discord.Net.
Check your intents
- [x] I double checked that I have the required intents.
Description
I have already created the bot with some SlashCommands, and one of the commands had several Choice parameters in the setup
public async Task HandleAsync([
Summary("priority", "the priority channel to move the thread to."),
Choice("red", "red"),
Choice("yellow", "yellow"),
Choice("green", "green"),
Choice("low", "low")]
string priority)
after having users use it for a while, they requested a new Choice parameter for shipping
public async Task HandleAsync([
Summary("priority", "the priority channel to move the thread to."),
Choice("red", "red"),
Choice("yellow", "yellow"),
Choice("green", "green"),
Choice("low", "low"),
Choice("shipping", "shipping")]
string priority)
so I added it, but the server (even after a Ctrl-R) will not register the new Choice for shipping.
tried upgrading to 3.17.4, but the issue remains.
How can I get the server to register the new choice?
Version
3.17.2
Working Version
No response
Logs
n/a
Sample
added to description
Packages
<PackageReference Include="Discord.Net" Version="3.17.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="9.0.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.4" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.4" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.4" />
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.4" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.4" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.4" />
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
<PackageReference Include="Serilog.Sinks.ApplicationInsights" Version="4.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
Environment
- OS: Windows
- dotnet: net8.0