Skip to content
Discussion options

You must be logged in to vote

Autocomplete options and choices have a fixed limit at 25, can't go past that.

Discord API does however support optional minimum and maximum limits for numeric and string types. So to pick a number between 1-36, you can annotate to a Range, for example:

@app_commands.command()
async def command(interaction: discord.Interaction, number: app_commands.Range[int, 1, 36]):
    ...

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@NavisGames
Comment options

@NavisGames
Comment options

@ika2kki
Comment options

@NavisGames
Comment options

@LeoCx1000
Comment options

Answer selected by NavisGames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants