Open plun1331 opened 2 years ago
ids should be sent as strings
snowflakes can be sent as integers (this has always worked). In fact, the docs says that Discord handle them internally as integers. They are however always returned as string by the API to prevent overflows in some languages.
The error reported in this issue can also be reproduced when sending the (invalid) ID as a string.
Description
When trying to create a message with a select option that contains an emoji ID that is too large, (e.g.
99361420069595959602
), the API will respond with a 500 status code.Example Payload:
Steps to Reproduce
Expected Behavior
The API responds with a proper error, such as a 400 Bad Request
Current Behavior
The API responds with a 500 Internal Server Error
Screenshots/Videos
No response
Client and System Information