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

midjourney how to get the error information like 'Invalid request' #1 #1491

Closed
SericWong opened this issue Feb 3, 2024 · 1 comment
Closed

Comments

@SericWong
Copy link

SericWong commented Feb 3, 2024

image

How can I make the bot return an error message?
For example, information such as syntax errors or illegal parameters. The interfaces currently used do not return information, which will lead to confusion about what happened.

@FedorLap2006
Copy link
Collaborator

An error message on your screenshot is an embed. And it seems it is a response to a slash command invocation.
You can achieve a similar behavior by utilizing s.InteractionRespond and setting Data.Embeds field.

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

No branches or pull requests

2 participants