mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-04-29 13:49:25 -05:00
Upgrade to Kotlin 1.9.0
This commit is contained in:
@@ -20,6 +20,7 @@ class DevCommand : SlashCommand {
|
||||
override val name = "dev"
|
||||
override val ephemeral = true
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
if (!GlobalVal.devUserIds.contains(event.interaction.user.id)) {
|
||||
return event.followupEphemeral(getMessage("error.notDeveloper", settings))
|
||||
|
||||
+1
@@ -32,6 +32,7 @@ class AnnouncementCommand(val wizard: Wizard<Announcement>) : SlashCommand {
|
||||
override val name = "announcement"
|
||||
override val ephemeral = true
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
return when (event.options[0].name) {
|
||||
"create" -> create(event, settings)
|
||||
|
||||
+1
@@ -28,6 +28,7 @@ class CalendarCommand(val wizard: Wizard<PreCalendar>, val staticMessageSrv: Sta
|
||||
override val name = "calendar"
|
||||
override val ephemeral = true
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
return when (event.options[0].name) {
|
||||
"create" -> create(event, settings)
|
||||
|
||||
+1
@@ -14,6 +14,7 @@ class DiscalCommand : SlashCommand {
|
||||
override val name = "discal"
|
||||
override val ephemeral = false
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
return event.interaction.guild
|
||||
.flatMap(DiscalEmbed::info)
|
||||
|
||||
+1
@@ -29,6 +29,7 @@ class DisplayCalendarCommand : SlashCommand {
|
||||
override val name = "displaycal"
|
||||
override val ephemeral = true
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
return when (event.options[0].name) {
|
||||
"new" -> new(event, settings)
|
||||
|
||||
@@ -34,6 +34,7 @@ class EventCommand(val wizard: Wizard<PreEvent>, val staticMessageSrv: StaticMes
|
||||
override val name = "event"
|
||||
override val ephemeral = true
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
return when (event.options[0].name) {
|
||||
"create" -> create(event, settings)
|
||||
|
||||
+1
@@ -25,6 +25,7 @@ class EventsCommand : SlashCommand {
|
||||
override val name = "events"
|
||||
override val ephemeral = false
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
return when (event.options[0].name) {
|
||||
"upcoming" -> upcomingEventsSubcommand(event, settings)
|
||||
|
||||
@@ -14,6 +14,7 @@ class HelpCommand : SlashCommand {
|
||||
override val name = "help"
|
||||
override val ephemeral = true
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
return event.followupEphemeral(
|
||||
getMessage("error.workInProgress", settings, "${Config.URL_BASE.getString()}/commands")
|
||||
|
||||
+1
@@ -17,6 +17,7 @@ class LinkCalendarCommand : SlashCommand {
|
||||
override val name = "linkcal"
|
||||
override val ephemeral = false
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
val showOverview = event.getOption("overview")
|
||||
.flatMap(ApplicationCommandInteractionOption::getValue)
|
||||
|
||||
@@ -22,6 +22,7 @@ class RsvpCommand : SlashCommand {
|
||||
override val name = "rsvp"
|
||||
override val ephemeral = true
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
return when (event.options[0].name) {
|
||||
"ontime" -> onTime(event, settings)
|
||||
|
||||
+1
@@ -22,6 +22,7 @@ class SettingsCommand : SlashCommand {
|
||||
override val name = "settings"
|
||||
override val ephemeral = true
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
//Check if user has permission to use this
|
||||
return event.interaction.member.get().hasElevatedPermissions().flatMap { hasPerm ->
|
||||
|
||||
+1
@@ -19,6 +19,7 @@ class AddCalCommand : SlashCommand {
|
||||
override val name = "addcal"
|
||||
override val ephemeral = true
|
||||
|
||||
@Deprecated("Use new handleSuspend for K-coroutines")
|
||||
override fun handle(event: ChatInputInteractionEvent, settings: GuildSettings): Mono<Message> {
|
||||
//TODO: Remove dev-only and switch to patron-only once this is completed
|
||||
return if (settings.devGuild) {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# TODO: I eventually want to get spring's dependency management (BOM) plugin working one day, but its not resolving versions somehow?
|
||||
|
||||
# Language
|
||||
kotlinVersion=1.8.10
|
||||
kotlinVersion=1.9.0
|
||||
|
||||
# Plugins
|
||||
springDependencyManagementVersion=1.0.13.RELEASE
|
||||
|
||||
Reference in New Issue
Block a user