Show "LIVE" in duration if a stream has been requested
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
09444e8465
commit
6e72646e2a
1 changed files with 6 additions and 2 deletions
|
@ -29,9 +29,13 @@ public static class LavalinkTrackExtensions
|
|||
builder.Append(" by ").Append(Markdown.Sanitize(track.Author));
|
||||
}
|
||||
|
||||
var duration = track.Duration;
|
||||
builder.Append($" ({duration.ReadableDuration()})");
|
||||
if (track.IsLiveStream)
|
||||
{
|
||||
builder.Append($" ({Markdown.Bold("LIVE")})");
|
||||
return builder.ToString();
|
||||
}
|
||||
|
||||
builder.Append($" ({track.Duration.ReadableDuration()})");
|
||||
return builder.ToString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue