Skip to content

Commit 1fb0756

Browse files
committed
Fix issue with invalid change configuration error
1 parent b9a9193 commit 1fb0756

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
alias(libs.plugins.kotlin.serialization) apply false
66
}
77
allprojects {
8-
version = "5.8.1"
8+
version = "5.8.2"
99
group = "space.votebot"
1010

1111
repositories {

plugin/src/main/kotlin/space/votebot/commands/vote/create/CreateCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ suspend fun VoteBotModule.createCommand() = ephemeralSlashCommand(::CreateArgume
7171
voteCommandContext()
7272

7373
action commandAction@{
74-
if (arguments.maxVotes != 1 && arguments.maxChanges != 0) {
74+
if ((arguments.maxVotes != null && arguments.maxVotes != 1) && (arguments.maxChanges != null && arguments.maxChanges != 0)) {
7575
throw DiscordRelayedException(VoteBotTranslations.Vote.Create.invalidChangeConfiguration)
7676
}
7777
var currentSettings = (VoteBotDatabase.userSettings.findOneById(user.id)?.settings

0 commit comments

Comments
 (0)