discord-api-docs
discord-api-docs copied to clipboard
Maximum size of commands is just too low
Description
I'm bringing the discussion #4070 into an issue. The points made there still stand.
I also have this unfortunate issue where I cannot localise my commands any further without seriously dumbing down or even removing locales from my bot. I am translating across more than 5 locales, more of which have fewer translations. Also, I want to point out that not all my commands are even localised, and I have a total of about 15 commands.
The catalyst for opening this was #6577. My bot has Spanish as the most translated locale. This would only result in a few modifications (or simply none at all) which essentially duplicates my es-ES payload in terms of size. The maximum size by Discord however is still the same. I'm sure people will want to switch to their natural choice—what are we supposed to do in this case?
I feel there should have been an increase in the maximum allowed size, or at least offer an alternative for developers to ship translations.
Steps to Reproduce
- Have a bot
- Localise it
Expected Behavior
Discord should allow bigger payloads for localisation (or explore alternatives).
Current Behavior
APPLICATION_COMMAND_TOO_LARGE
.
Screenshots/Videos
No response
Client and System Information
N/A
How much more of an increase do you need?
I faced a similar issue, my bots support all 31 languages, and I have to make very small commands because otherwise they error with the aforementioned error.
Just recently, I doubled the limit with a command with 6 subcommands with 3 options (2 string with localised choices, and 1 number) for a command the likes of /convert mass
, /convert length
...
About 2 months ago the same command failed to register (with just 4 subcommands) as a result of being on the edge of 4000 characters and a French translator increasing the amount of characters slightly.
How much more of an increase do you need?
Is it possible to remove locales counting towards the total size? There would still be a limit in this case as locales can only exist with commands and a maximum string length is still enforced on them.
If not, we could start by tripling the existing limit?
Only the maximum value (including localisations) counts towards the limit. It's not the sum of all of them.
If not, we could start by tripling the existing limit?
We plan to double it next week. If this still isn't sufficient and the system remains healthy with this updated limit we will increase it further.
We shipped a doubling of the limit.