Summary
Not sure if this is intended but it (partially) works already.
If one specifies a Slash Command and adds an autocomplete as parameter, specified with the variadic argument attribute, the library is unable to find the autocomplete input of the user and displays a warning message.
What version of the library are you using?
v5.0.0-nightly (make sure you are using the latest nightly!)
What .NET version are you using? Make sure to use the latest patch release for your major version.
.NET 9.0
Operating System
Windows 11 23H2 22635.4515
Reproduction Steps
- Create a command with an autocomplete and a variadic argument as parameter
- Try to fill the parameter and enter the autocomplete in discord
- See the warning coming up in the logs
Trace Logs
Exceptions or other error messages
warn: DSharpPlus.Commands.Processors.BaseCommandProcessor[0] Cannot find the auto complete parameter that the user is currently typing - this should be reported to library developers.
Anything else you'd like to share
Example code for the command:
[Command("autocomplete-test"), Description("Tests the autocomplete functionality with variadic arguments."), RequireGuild)]
public async ValueTask AutocompleteTestAsync
(
SlashCommandContext context,
[Description("The autocomplete to test."), SlashAutoCompleteProvider(typeof(TestAutocomplete)), VariadicArgument(10)] string[] tests
)Reactions are currently unavailable
Summary
Not sure if this is intended but it (partially) works already.
If one specifies a Slash Command and adds an autocomplete as parameter, specified with the variadic argument attribute, the library is unable to find the autocomplete input of the user and displays a warning message.
What version of the library are you using?
v5.0.0-nightly (make sure you are using the latest nightly!)
What .NET version are you using? Make sure to use the latest patch release for your major version.
.NET 9.0
Operating System
Windows 11 23H2 22635.4515
Reproduction Steps
Trace Logs
Exceptions or other error messages
Anything else you'd like to share
Example code for the command: