Discord-Net-Labs / Discord.Net-Labs

An experimental fork of Discord.Net that implements the newest discord features for testing and development to eventually get merged into Discord.Net
https://labs.discordnet.dev
MIT License
156 stars 42 forks source link

Incorrect number of autocomplete choices #332

Closed nev-r closed 2 years ago

nev-r commented 2 years ago

https://github.com/Discord-Net-Labs/Discord.Net-Labs/blob/c5b8d07378c7a8f277d5d7df1035809d6b2603e8/src/Discord.Net.WebSocket/Entities/Interaction/SlashCommands/SocketAutocompleteInteraction.cs#L83

25 choices are supported. autocomplete options follows the Application Command Option Structure

EndGameGl commented 2 years ago

Adding to the report: exact bug location InteractionHelper.cs public static Task SendAutocompleteResultAsync Preconditions.AtMost(result.Count(), 20, nameof (result), "A maximum of 20 choices are allowed!");