mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-02-09 04:49:22 -06:00
Fix various issues with event command
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -519,7 +519,7 @@
|
||||
"type": 1,
|
||||
"description": "Set's the event's recurrence in the wizard",
|
||||
"required": false,
|
||||
"option": [
|
||||
"options": [
|
||||
{
|
||||
"name": "recur",
|
||||
"type": 5,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user