diff --git a/build.gradle.kts b/build.gradle.kts index b3676fb..bdd279f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,7 +16,7 @@ plugins { } group = "io.ileukocyte" -version = Version(major = 3, minor = 4, patch = 2) +version = Version(major = 3, minor = 4, patch = 3) repositories { mavenCentral() diff --git a/src/main/kotlin/io/ileukocyte/hibernum/Immutable.kt b/src/main/kotlin/io/ileukocyte/hibernum/Immutable.kt index c7de6ce..ec68153 100644 --- a/src/main/kotlin/io/ileukocyte/hibernum/Immutable.kt +++ b/src/main/kotlin/io/ileukocyte/hibernum/Immutable.kt @@ -32,7 +32,7 @@ object Immutable { as KotlinJsr223ScriptEngineImpl @JvmField - val VERSION = Version(major = 3, minor = 4, patch = 2) + val VERSION = Version(major = 3, minor = 4, patch = 3) @JvmField val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0" //"User-Agent: DiscordBot ($GITHUB_REPOSITORY, $VERSION)" diff --git a/src/main/kotlin/io/ileukocyte/hibernum/commands/general/AboutCommand.kt b/src/main/kotlin/io/ileukocyte/hibernum/commands/general/AboutCommand.kt index 996438d..dac5fcf 100644 --- a/src/main/kotlin/io/ileukocyte/hibernum/commands/general/AboutCommand.kt +++ b/src/main/kotlin/io/ileukocyte/hibernum/commands/general/AboutCommand.kt @@ -116,7 +116,7 @@ class AboutCommand : TextCommand { } field { - title = "Command Statistics" + title = "Discord Statistics" description = buildString { appendLine("**Total Commands**: ${CommandHandler.size}" + commandCount.filterNotNull().takeUnless { it.isEmpty() } diff --git a/src/main/kotlin/io/ileukocyte/hibernum/commands/moderation/PruneCommand.kt b/src/main/kotlin/io/ileukocyte/hibernum/commands/moderation/PruneCommand.kt index 957fb42..d6fcdff 100644 --- a/src/main/kotlin/io/ileukocyte/hibernum/commands/moderation/PruneCommand.kt +++ b/src/main/kotlin/io/ileukocyte/hibernum/commands/moderation/PruneCommand.kt @@ -236,7 +236,7 @@ class PruneCommand : SlashOnlyCommand { event.channel.sendWarning("${event.user.asMention} has used the `$name` command!") { text = "This message will self-delete in 5 seconds" - }.queue { it.delete().queueAfter(5, TimeUnit.SECONDS, {}) {} } + }.queue { it.delete().queueAfter(5, TimeUnit.SECONDS, null) {} } } private fun getResponse(