diff --git a/client/src/main/kotlin/org/dreamexposure/discal/client/commands/EventCommand.kt b/client/src/main/kotlin/org/dreamexposure/discal/client/commands/EventCommand.kt index 3d932f6a..fc28433f 100644 --- a/client/src/main/kotlin/org/dreamexposure/discal/client/commands/EventCommand.kt +++ b/client/src/main/kotlin/org/dreamexposure/discal/client/commands/EventCommand.kt @@ -424,7 +424,7 @@ class EventCommand(private val wizard: Wizard) : SlashCommand { LOGGER.error("Create event with command failure", it) }.onErrorResume { event.followupEphemeral(getMessage("confirm.failure.create", settings)) - } + }.switchIfEmpty(event.followupEphemeral(getMessage("confirm.failure.create", settings))) } else { // Editing pre.event!!.update(pre.updateSpec()) diff --git a/client/src/main/kotlin/org/dreamexposure/discal/client/message/embed/EventEmbed.kt b/client/src/main/kotlin/org/dreamexposure/discal/client/message/embed/EventEmbed.kt index 2b1ad036..f77a17ae 100644 --- a/client/src/main/kotlin/org/dreamexposure/discal/client/message/embed/EventEmbed.kt +++ b/client/src/main/kotlin/org/dreamexposure/discal/client/message/embed/EventEmbed.kt @@ -126,6 +126,9 @@ object EventEmbed : EmbedMaker { builder.addField(getMessage("event", "wizard.field.id", settings), event.eventId!!, true) builder.addField(getMessage("event", "wizard.field.calendar", settings), event.calNumber.toString(), true) + if (event.image != null) + builder.image(event.image!!) + return builder.build() } } diff --git a/core/src/main/resources/commands/event.json b/core/src/main/resources/commands/event.json index 0dcb6805..97550e02 100644 --- a/core/src/main/resources/commands/event.json +++ b/core/src/main/resources/commands/event.json @@ -519,7 +519,7 @@ "type": 1, "description": "Set's the event's recurrence in the wizard", "required": false, - "option": [ + "options": [ { "name": "recur", "type": 5, diff --git a/core/src/main/resources/i18n/command/event/event.properties b/core/src/main/resources/i18n/command/event/event.properties index d52073d2..db507994 100644 --- a/core/src/main/resources/i18n/command/event/event.properties +++ b/core/src/main/resources/i18n/command/event/event.properties @@ -6,11 +6,11 @@ name.success=Successfully set the name of the event. description.success=Successfully set the description of the event. start.success=Successfully set the event's start. -start.success.past=Successfully set the event's start\n\nWarning: The start date/time is in the past. +start.success.past=Successfully set the event's start\n\n***Warning:*** The start date/time is in the past. start.failure.afterEnd=An event cannot start after it ends. end.success=Successfully set the event's end. -end.success.past=Successfully set the event's end.\n\nWarning: This end date/time is in the past. +end.success.past=Successfully set the event's end.\n\n***Warning:*** This end date/time is in the past. end.failure.beforeStart=An event cannot end before it starts. color.success=Successfully set the color of the event.