mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-01-26 22:08:29 -06:00
Fix link cal command error
This commit is contained in:
@@ -17,7 +17,7 @@ class LinkCalendarCommand : SlashCommand {
|
||||
override val ephemeral = false
|
||||
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
val calendarNumber = event.options[0].getOption("calendar")
|
||||
val calendarNumber = event.getOption("calendar")
|
||||
.flatMap(ApplicationCommandInteractionOption::getValue)
|
||||
.map(ApplicationCommandInteractionOptionValue::asLong)
|
||||
.map(Long::toInt)
|
||||
|
||||
Reference in New Issue
Block a user