mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-02-15 08:08:42 -06:00
Add error message if guild does not have a calendar for range
This commit is contained in:
@@ -192,8 +192,9 @@ class EventsCommand : SlashCommand {
|
||||
}.then(Mono.just(""))
|
||||
}
|
||||
}
|
||||
}).onErrorResume(DateTimeParseException::class.java) {
|
||||
Responder.followup(event, getCommonMsg("error.format.date", settings))
|
||||
}.then()
|
||||
}).switchIfEmpty(Responder.followup(event, getCommonMsg("error.notFound.calendar", settings)))
|
||||
.onErrorResume(DateTimeParseException::class.java) {
|
||||
Responder.followup(event, getCommonMsg("error.format.date", settings))
|
||||
}.then()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user