From 76e358bb663f3f019d706b01b72b91877d8c95cf Mon Sep 17 00:00:00 2001 From: Tommy Schmidt Date: Mon, 27 May 2024 22:11:48 +0200 Subject: [PATCH] fix: update kord (#118) --- pom.xml | 2 +- src/main/kotlin/de/darkatra/vrising/discord/BotRuntimeHints.kt | 2 -- .../vrising/discord/commands/GetServerDetailsCommand.kt | 2 +- .../vrising/discord/serverstatus/ServerStatusMonitorService.kt | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 091f0f7..be12397 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,7 @@ 1.8.22 official - 0.10.0 + 0.14.0 1.2.1 5.0.0 3.4.4 diff --git a/src/main/kotlin/de/darkatra/vrising/discord/BotRuntimeHints.kt b/src/main/kotlin/de/darkatra/vrising/discord/BotRuntimeHints.kt index 815f539..d775400 100644 --- a/src/main/kotlin/de/darkatra/vrising/discord/BotRuntimeHints.kt +++ b/src/main/kotlin/de/darkatra/vrising/discord/BotRuntimeHints.kt @@ -16,7 +16,6 @@ import dev.kord.core.cache.data.ThreadMemberData import dev.kord.core.cache.data.UserData import dev.kord.core.cache.data.VoiceStateData import dev.kord.core.cache.data.WebhookData -import io.ktor.network.selector.InterestSuspensionsMap import io.ktor.utils.io.pool.DefaultPool import org.dizitart.no2.Document import org.dizitart.no2.Index @@ -92,6 +91,5 @@ class BotRuntimeHints : RuntimeHintsRegistrar { .registerType(TypeReference.of("kotlin.internal.jdk8.JDK8PlatformImplementations"), MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS) // required by ktor (dependency of kord) .registerType(DefaultPool::class.java, MemberCategory.DECLARED_FIELDS) - .registerType(InterestSuspensionsMap::class.java, MemberCategory.DECLARED_FIELDS) } } diff --git a/src/main/kotlin/de/darkatra/vrising/discord/commands/GetServerDetailsCommand.kt b/src/main/kotlin/de/darkatra/vrising/discord/commands/GetServerDetailsCommand.kt index c13ccf9..cd37ceb 100644 --- a/src/main/kotlin/de/darkatra/vrising/discord/commands/GetServerDetailsCommand.kt +++ b/src/main/kotlin/de/darkatra/vrising/discord/commands/GetServerDetailsCommand.kt @@ -9,7 +9,7 @@ import dev.kord.core.behavior.interaction.response.respond import dev.kord.core.entity.interaction.ChatInputCommandInteraction import dev.kord.core.entity.interaction.GlobalChatInputCommandInteraction import dev.kord.core.entity.interaction.GuildChatInputCommandInteraction -import dev.kord.rest.builder.message.modify.embed +import dev.kord.rest.builder.message.embed import org.springframework.boot.context.properties.EnableConfigurationProperties import org.springframework.stereotype.Component import org.springframework.util.StringUtils diff --git a/src/main/kotlin/de/darkatra/vrising/discord/serverstatus/ServerStatusMonitorService.kt b/src/main/kotlin/de/darkatra/vrising/discord/serverstatus/ServerStatusMonitorService.kt index c89d517..7d9c616 100644 --- a/src/main/kotlin/de/darkatra/vrising/discord/serverstatus/ServerStatusMonitorService.kt +++ b/src/main/kotlin/de/darkatra/vrising/discord/serverstatus/ServerStatusMonitorService.kt @@ -15,7 +15,7 @@ import dev.kord.core.behavior.channel.createEmbed import dev.kord.core.behavior.edit import dev.kord.core.exception.EntityNotFoundException import dev.kord.rest.builder.message.EmbedBuilder -import dev.kord.rest.builder.message.modify.embed +import dev.kord.rest.builder.message.embed import org.slf4j.LoggerFactory import org.springframework.stereotype.Service import java.time.Instant