discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Maximum size of commands is just too low

Open Jiralite opened this issue 6 months ago • 6 comments

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

  1. Have a bot
  2. Localise it

Expected Behavior

Discord should allow bigger payloads for localisation (or explore alternatives).

Current Behavior

APPLICATION_COMMAND_TOO_LARGE.

spiderman-crying

Screenshots/Videos

No response

Client and System Information

N/A

Jiralite avatar Feb 09 '24 01:02 Jiralite

How much more of an increase do you need?

jhgg avatar Feb 09 '24 02:02 jhgg

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.

kyranet avatar Feb 09 '24 08:02 kyranet

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?

Jiralite avatar Feb 09 '24 12:02 Jiralite

Only the maximum value (including localisations) counts towards the limit. It's not the sum of all of them.

Rapptz avatar Feb 09 '24 12:02 Rapptz

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.

jhgg avatar Feb 11 '24 20:02 jhgg

We shipped a doubling of the limit.

jhgg avatar Feb 15 '24 20:02 jhgg