Kardbord / Kard-bot

A Discord bot destined for greatness
GNU Affero General Public License v3.0
1 stars 0 forks source link

build-a-meme could better utilize subcommands #28

Closed Kardbord closed 2 years ago

Kardbord commented 2 years ago

It's a bit clunky to have multiple top level commands for what is functionally one command. Can /build-a-meme[#] be consolidated into a single command by using subcommands?

Kardbord commented 2 years ago

After doing some research. this unfortunately this isn't possible at the moment. Trying to bundle all of the /build-a-meme commands into a single top level command results in an invalid request size which is rejected by the API.

Cannot create 'build-a-meme' command: HTTP 400 Bad Request, {"code": 50035, "errors": {"_errors": [{"code": "APPLICATION_COMMAND_TOO_LARGE", "message": "Command exceeds maximum size (4000)"}]}, "message": "Invalid Form Body"}

Per Discord's API docs:

Slash commands can have a maximum of 4000 characters for combined name, description, and value properties for each command and its subcommands and groups