discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.95k stars 1.26k forks source link

Context menu commands `description` regression? #5836

Closed cobaltt7 closed 1 year ago

cobaltt7 commented 1 year ago

Description

According to the docs, context menu commands should set their description to "" (an empty string). However, today I noticed that the API no longer accepts an empty string (I get [BASE_TYPE_BAD_LENGTH]: Must be between 1 and 100 in length.), but if I give the command a description, I get [APPLICATION_COMMAND_CONTEXT_MENU_DESCRIPTION_INVALID]: Context menu commands cannot have description. I have to remove the field from my API request entirely before it is successful. If this was an intentional change, it was not announced nor reflected anywhere.

Steps to Reproduce

Create a context menu (USER or MESSAGE) command. Observe how you may now only set its description to undefined and "" is no longer permitted.

Expected Behavior

"" to be allowed as it always has, or if this was an intentional change, proper announcements beforehand.

Current Behavior

Only undefined is allowed.

Screenshots/Videos

No response

Client and System Information

API v10 (through Discord.js 14.7.1)

infinitestory commented 1 year ago

This is a bug, we've got a fix for it in the works. Thanks for reporting!

appellation commented 1 year ago

The fix for this has rolled out.