Skip to content

Commit

Permalink
Fix issues with entry point registration
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 25, 2024
1 parent e3a886a commit 8a50b69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ kotlin.incremental=true
ksp.incremental=false
ksp.useKSP2=true

projectVersion=1.9.12-mikbot-SNAPSHOT
projectVersion=1.9.14-mikbot-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public abstract class ApplicationCommandRegistry : KordExKoinComponent {
commands += it.messageCommands
commands += it.slashCommands
commands += it.userCommands
commands += it.entryPointCommands
}

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,9 @@ public open class PrimaryEntryPointCommand(extension: Extension) : ApplicationCo
event: Nothing,
cache: MutableStringKeyedMap<Any>,
): Nothing = error("Primary entry point commands can't be called")

override fun validate() {
require(this::handler.isInitialized) { "Handler needs to be set" }
require(this::description.isInitialized) { "Handler description to be set" }
}
}

0 comments on commit 8a50b69

Please sign in to comment.