Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.9k stars 3.77k forks source link

Appcommands autcomplete should have a limit. #9777

Closed PrupleDood closed 7 months ago

PrupleDood commented 7 months ago

Summary

Adding more than 25 choices to an autocomplete doesn't generate an error

What is the feature request for?

The core library

The Problem

appcommands autocomplete does not generate an error if there are more than 25 choices. This is a limit set by discord and is stated here.

The Ideal Solution

An error to be generated if the number of choices exceeds 25 and updates to the documentation to reflect changes.

The Current Solution

No response

Additional Context

No response

Soheab commented 7 months ago

Discord does throw an error for this but autocomplete errors were ignored up until https://github.com/Rapptz/discord.py/commit/9e2f2cb3af30c9d4c6d3ff4f7850832c05488d6f

Always try the latest build before opening an issue.