Skip to content

Commit

Permalink
Fix funky formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sschr15 committed Sep 18, 2023
1 parent 11e1b36 commit a0e9660
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1599,12 +1599,17 @@ class UtilityExtension : Extension() {
val fullMessage = buildString {
append(message)
append(" (")

var first = true
for (user in group.users) {
if (length > 0) append(", ")
if (!first) append(", ")
first = false

append("<@")
append(user)
append(">")
}

append(")")
}
channel.createMessage(fullMessage)
Expand Down

0 comments on commit a0e9660

Please sign in to comment.