Skip to content

Commit

Permalink
Merge pull request #55 from PeterStark000/main
Browse files Browse the repository at this point in the history
Add support for commas in the user ID list in /dailycheck command.
  • Loading branch information
MrPowerGamerBR authored Oct 1, 2024
2 parents 97cd6ab + 2ffa823 commit 8cbc1f4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class DailyCheckCommand(val helper: LorittaHelper) : SlashCommandDeclarationWrap

// Because we did stuff in a... unconventional way, we will get all matched user arguments in a unconventional way: By getting all resolved objects!
val usersIds = args[options.userIds]
.replace(", ", "")
.split(" ")
.mapNotNull { it.toLongOrNull() }
.toSet()
Expand Down

0 comments on commit 8cbc1f4

Please sign in to comment.