Skip to content

Commit

Permalink
Fix time module tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Sep 18, 2024
1 parent c57ce2e commit 8389326
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package dev.kordex.test.modules.dev.java.time
import dev.kordex.core.commands.Arguments
import dev.kordex.core.extensions.Extension
import dev.kordex.core.extensions.chatCommand
import dev.kordex.core.i18n.toKey
import dev.kordex.core.utils.respond
import dev.kordex.modules.dev.java.time.coalescingJ8Duration
import dev.kordex.modules.dev.java.time.toHuman
Expand All @@ -22,15 +23,15 @@ class TestExtension : Extension() {

class TestArgs : Arguments() {
val duration by coalescingJ8Duration {
name = "duration"
description = "Duration argument"
name = "duration".toKey()
description = "Duration argument".toKey()
}
}

override suspend fun setup() {
chatCommand(TestExtension::TestArgs) {
name = "format"
description = "Let's test formatting."
name = "format".toKey()
description = "Let's test formatting.".toKey()

action {
message.respond(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package dev.kordex.test.modules.dev.time4j
import dev.kordex.core.commands.Arguments
import dev.kordex.core.extensions.Extension
import dev.kordex.core.extensions.chatCommand
import dev.kordex.core.i18n.toKey
import dev.kordex.core.utils.respond
import dev.kordex.modules.dev.time4j.coalescingT4JDuration
import dev.kordex.modules.dev.time4j.toHuman
Expand All @@ -22,15 +23,15 @@ class TestExtension : Extension() {

class TestArgs : Arguments() {
val duration by coalescingT4JDuration {
name = "duration"
description = "Duration argument"
name = "duration".toKey()
description = "Duration argument".toKey()
}
}

override suspend fun setup() {
chatCommand(TestExtension::TestArgs) {
name = "format"
description = "Let's test formatting."
name = "format".toKey()
description = "Let's test formatting.".toKey()

action {
message.respond(
Expand Down

0 comments on commit 8389326

Please sign in to comment.