Fix various issues with event command

This commit is contained in:
NovaFox161
2021-10-15 16:32:58 -05:00
parent f2a4935866
commit ea43f825c9
4 changed files with 7 additions and 4 deletions

View File

@@ -424,7 +424,7 @@ class EventCommand(private val wizard: Wizard<PreEvent>) : 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())

View File

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

View File

@@ -519,7 +519,7 @@
"type": 1,
"description": "Set's the event's recurrence in the wizard",
"required": false,
"option": [
"options": [
{
"name": "recur",
"type": 5,

View File

@@ -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.