Skip to content

Commit

Permalink
dump kordex version
Browse files Browse the repository at this point in the history
  • Loading branch information
MeiNanziiii committed Oct 29, 2024
1 parent e3085be commit fd0dd00
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fabric-loader="0.16.5"
fabric-kotlin="1.12.2+kotlin.2.0.20"
fabric-api="0.102.0+1.21"

kordex="2.2.1-SNAPSHOT"
kordex="2.3.1-SNAPSHOT"
konf="1.1.2"

discord-reserializer="4.3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import dev.kordex.core.components.components
import dev.kordex.core.components.disabledButton
import dev.kordex.core.components.publicButton
import dev.kordex.core.extensions.Extension
import dev.kordex.core.i18n.toKey
import dev.kordex.core.time.TimestampType
import dev.kordex.core.time.toDiscord
import io.ktor.util.network.address
Expand Down Expand Up @@ -51,7 +52,7 @@ class IPCheckExtension : Extension() {
}
components {
publicButton {
label = config[MessagesSpec.yesButton]
label = config[MessagesSpec.yesButton].toKey()
style = ButtonStyle.Success

action {
Expand All @@ -60,15 +61,15 @@ class IPCheckExtension : Extension() {
edit {
components {
disabledButton {
label = config[MessagesSpec.yesButton]
label = config[MessagesSpec.yesButton].toKey()
style = ButtonStyle.Success
}
}
}
}
}
publicButton {
label = config[MessagesSpec.noButton]
label = config[MessagesSpec.noButton].toKey()
style = ButtonStyle.Danger

action {
Expand All @@ -91,7 +92,7 @@ class IPCheckExtension : Extension() {
}
components {
publicButton {
label = config[MessagesSpec.unblockButton]
label = config[MessagesSpec.unblockButton].toKey()
style = ButtonStyle.Danger

action {
Expand All @@ -114,7 +115,7 @@ class IPCheckExtension : Extension() {
}
components {
disabledButton {
label = config[MessagesSpec.unblockButton]
label = config[MessagesSpec.unblockButton].toKey()
style = ButtonStyle.Danger
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import dev.kord.common.entity.Snowflake
import dev.kord.rest.builder.message.embed
import dev.kordex.core.extensions.Extension
import dev.kordex.core.extensions.ephemeralSlashCommand
import dev.kordex.core.i18n.toKey
import net.minecraft.server.MinecraftServer
import org.koin.core.component.inject
import ua.mei.minekord.config.config
Expand All @@ -19,8 +20,8 @@ class PlayerListExtension : Extension() {

override suspend fun setup() {
ephemeralSlashCommand {
name = config[CommandsSpec.PlayerListSpec.name]
description = config[CommandsSpec.PlayerListSpec.description]
name = config[CommandsSpec.PlayerListSpec.name].toKey()
description = config[CommandsSpec.PlayerListSpec.description].toKey()

guild(Snowflake(config[BotSpec.guild]))

Expand Down

0 comments on commit fd0dd00

Please sign in to comment.