Add a property to Autocompletion to only allow sent values #5211
Unanswered
Harvle
asked this question in
API Feature Requests & Ideas
Replies: 1 comment
-
This is a duplicate of #4882 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Description
Adds a new property to the
ApplicationCommandOption
structure that will only allow the user to send an option from the autocompleted list, like how choices currently work.Example Use Case
A bot has commands that use internally stored IDs to manage information (warns, bans, kicks, quotes, tickets, etc...). These IDs can't be stored in a hard-set
choice
array, so autocomplete has to be used here. The issue is that currently, a user can enter something that isn't in the list, which would then require validation on the developer's end.Ideal Solution
Adding a property to the
ApplicationCommandOption
structure, called something likestrict_autocomplete: boolean
would allow developers to decide whether the returned options are the only ones users can use in their commands.Beta Was this translation helpful? Give feedback.
All reactions