Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty slash responses break messages #6854

Open
VelvetToroyashi opened this issue May 10, 2024 · 0 comments
Open

Empty slash responses break messages #6854

VelvetToroyashi opened this issue May 10, 2024 · 0 comments

Comments

@VelvetToroyashi
Copy link
Contributor

Description

Providing an empty interaction response produces an empty message in a broken state. The pseudo-message of "Sending command" is updated to have no content, which causes some interesting behavior in the client. This behavior is exhibited both with HTTP interactions (returning the data as the response) and gateway interactions (POSTing to /callback). For the latter, Discord does return an error to the bot, but not the client.

Steps to Reproduce

Respond to an interaction with {"type":4}

Expected Behavior

The client/API updates the message to the usual "This interaction failed" message.

Current Behavior

The slash response is a greyed out message with no content, causing messages to overlap. Pressing up arrow (usually, re-run lash slash command) invokes the command as a slash command regardless of type (I can open another issue about that, if wanted).

Screenshots/Videos

image

Client and System Information

Tested on both stable 291963 (cd5f991) (Web client) and canary 292610 (6e0fcca) (Linux client)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant