Skip to content

Commit

Permalink
Do no only display queueing user when repeat is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Mar 15, 2024
1 parent a0a1774 commit e1ebf5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion music/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
subprojects {
version = "3.5.14-SNAPSHOT"
version = "3.5.15-SNAPSHOT"
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import kotlin.time.toDuration
* @param repeat whether to add the repeat emoji or not
*/
fun QueuedTrack.format(repeat: Boolean = false) = with(track.info) {
"[`$title - $author`]($uri) (${length.toDuration(DurationUnit.MILLISECONDS)})".run {
"[`$title - $author`]($uri) (${length.toDuration(DurationUnit.MILLISECONDS)}) (<@$queuedBy>)".run {
if (repeat) {
"🔂 $this (<@$queuedBy>)"
"🔂 $this"
} else {
this
}
Expand Down

0 comments on commit e1ebf5c

Please sign in to comment.