If the user supplies an argument that ends with whitespace, the autocomplete interaction the bot receives is trimmed, and does not end with whitespace.
My bot is too complex to use slash command options for every argument; so I've opted only one option and provide autocomplete suggestions to the user.
If the user types a space for the next argument, the bot cannot supply suggestions because it does not receive the entire user input.
Steps to Reproduce
Begin typing some text for a command that has autocomplete enabled.
Notice that Autocomplete payload is sent to your bot
Type a Space
Notice that the autocomplete payload is exactly the same, with no space
Expected Behavior
The autocomplete payload will be sent to the bot with the user's exact input.
Current Behavior
The bot receives trimmed input, removing any leading whitespace.
Description
If the user supplies an argument that ends with whitespace, the autocomplete interaction the bot receives is trimmed, and does not end with whitespace.
My bot is too complex to use slash command options for every argument; so I've opted only one option and provide autocomplete suggestions to the user.
If the user types a space for the next argument, the bot cannot supply suggestions because it does not receive the entire user input.
Steps to Reproduce
Expected Behavior
The autocomplete payload will be sent to the bot with the user's exact input.
Current Behavior
The bot receives trimmed input, removing any leading whitespace.
Screenshots/Videos
Video Explaining the issue:
https://www.youtube.com/watch?v=s41KxSMWFwI
Client and System Information