Add error message if guild does not have a calendar for range

This commit is contained in:
NovaFox161
2021-08-24 08:13:32 -06:00
parent 86d77d9d2a
commit 42d1d9efdd

View File

@@ -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()
}
}