Skip to content

Commit

Permalink
Update mikbot
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 24, 2024
1 parent 9fb1f9f commit 8cd15df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 8cd15df

Please sign in to comment.