Error Message as Interaction Response #4615
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
It'd be nice if a Discord error could be differentiated with a bot error, but besides that this would be lovely |
Beta Was this translation helpful? Give feedback.
-
I think this is necessary for slash commands and it worries me that something like this does not already exist today. This would work better as a separate endpoint, so that defered interactions could also have an error response. I think In general, I don't think ephemeral messages solve this problem because their formatting is chosen by the individual developer, and errors should all look the same so users recognize them as errors. |
Beta Was this translation helpful? Give feedback.
-
This would also be a great idea for bots that receive their interactions via webhook. There the app could use http status codes to indicate validation errors (code 400 for example) or Cooldowns(429). Additionally the response can contain errors message similar to the ones discord provides in API v9 and above. |
Beta Was this translation helpful? Give feedback.
-
For now, ephemeral messages could be used to reply to interactions to display errors to a specific user. That said, I understand that they don't have the same error styling, and I could definitely see how it would make a good addition and make app errors feel a bit more native. |
Beta Was this translation helpful? Give feedback.
For now, ephemeral messages could be used to reply to interactions to display errors to a specific user.
That said, I understand that they don't have the same error styling, and I could definitely see how it would make a good addition and make app errors feel a bit more native.