mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-01-26 05:48:29 -06:00
Add explicit error message
Unlike chat commands, failing silently is no longer "good" so, if an uncaught error travels back up the chain, it's best to tell the user something went wrong.
This commit is contained in:
@@ -32,7 +32,7 @@ class SlashCommandListener(applicationContext: ApplicationContext) {
|
||||
}.doOnError {
|
||||
LOGGER.error("Unhandled slash command error", it)
|
||||
}.onErrorResume {
|
||||
Mono.empty()
|
||||
event.followupEphemeral("An unknown error has occurred. Please try again and/or contact DisCal support.")
|
||||
}.then()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user