File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
plugin/src/main/kotlin/space/votebot/commands/vote/create Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55 alias(libs.plugins.kotlin.serialization) apply false
66}
77allprojects {
8- version = " 5.8.1 "
8+ version = " 5.8.2 "
99 group = " space.votebot"
1010
1111 repositories {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments