Fix another empty return

This commit is contained in:
NovaFox161
2022-02-13 14:00:31 -06:00
parent 59d477f0fc
commit df92101f82

View File

@@ -152,7 +152,7 @@ class CalendarCommand(val wizard: Wizard<PreCalendar>, val staticMessageSrv: Sta
val pre = wizard.get(settings.guildID)
if (pre != null) {
if (!pre.hasRequiredValues()) {
event.followupEphemeral(getMessage("confirm.failure.missing", settings))
return@flatMap event.followupEphemeral(getMessage("confirm.failure.missing", settings))
}
event.interaction.guild.flatMap { guild ->