Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit 45a90ce

Browse files
Allow commas in the daily check command
1 parent 10e3b4d commit 45a90ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/net/perfectdreams/loritta/helper/interactions/commands/vanilla/DailyCheckCommand.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class DailyCheckCommand(val helper: LorittaHelper) : SlashCommandDeclarationWrap
7878
context.deferChannelMessage(true)
7979

8080
val usersIds = args[options.userIds]
81-
.replace(", ", "")
81+
.replace(", ", " ")
8282
.split(" ")
8383
.mapNotNull { it.toLongOrNull() }
8484
.toSet()
@@ -206,7 +206,7 @@ class DailyCheckCommand(val helper: LorittaHelper) : SlashCommandDeclarationWrap
206206
context.deferChannelMessage(true)
207207

208208
val ips = args[options.ips]
209-
.replace(", ", "")
209+
.replace(", ", " ")
210210
.split(" ")
211211

212212
if (ips.isEmpty()) {
@@ -351,7 +351,7 @@ class DailyCheckCommand(val helper: LorittaHelper) : SlashCommandDeclarationWrap
351351

352352
// Because we did stuff in a... unconventional way, we will get all matched user arguments in a unconventional way: By getting all resolved objects!
353353
val clientIds = args[options.clientIds]
354-
.replace(", ", "")
354+
.replace(", ", " ")
355355
.split(" ")
356356
.map { UUID.fromString(it) }
357357

0 commit comments

Comments
 (0)