diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 00fdce1..f01fe50 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] kotlin = "2.0.21" -mikbot = "3.37.7" -ktor = "2.3.12" +mikbot = "3.37.9" +ktor = "3.0.0" [libraries] kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version = "1.7.3" } diff --git a/plugin/src/main/kotlin/space/votebot/commands/guild/GuildSettingsCommand.kt b/plugin/src/main/kotlin/space/votebot/commands/guild/GuildSettingsCommand.kt index 5498813..52f035f 100644 --- a/plugin/src/main/kotlin/space/votebot/commands/guild/GuildSettingsCommand.kt +++ b/plugin/src/main/kotlin/space/votebot/commands/guild/GuildSettingsCommand.kt @@ -4,6 +4,7 @@ import com.kotlindiscord.kord.extensions.commands.Arguments import com.kotlindiscord.kord.extensions.commands.application.slash.ephemeralSubCommand import com.kotlindiscord.kord.extensions.commands.converters.impl.channel import com.kotlindiscord.kord.extensions.extensions.ephemeralSlashCommand +import dev.kord.common.entity.ApplicationIntegrationType import dev.kord.core.behavior.channel.asChannelOfOrNull import dev.kord.core.entity.channel.TopGuildMessageChannel import dev.schlaubi.mikbot.plugin.api.settings.SettingsModule @@ -26,6 +27,7 @@ suspend fun SettingsModule.addGuildSettingsCommand() = ephemeralSlashCommand { name = "settings" description = "commands.settings.description" guildAdminOnly() + allowedInstallTypes.add(ApplicationIntegrationType.GuildInstall) ephemeralSubCommand(::SetVoteChannelArguments) { name = "set-vote-channel"