sanitized queuer names in music
This commit is contained in:
parent
12147da93b
commit
1cd7852674
@ -26,7 +26,11 @@ namespace NadekoBot.Modules.Music.Classes
|
|||||||
{
|
{
|
||||||
public SongInfo SongInfo { get; }
|
public SongInfo SongInfo { get; }
|
||||||
public MusicPlayer MusicPlayer { get; set; }
|
public MusicPlayer MusicPlayer { get; set; }
|
||||||
public string QueuerName { get; set; }
|
|
||||||
|
private string _queuerName;
|
||||||
|
public string QueuerName { get{
|
||||||
|
return Discord.Format.Sanitize(_queuerName);
|
||||||
|
} set { _queuerName = value; } }
|
||||||
|
|
||||||
public TimeSpan TotalTime { get; set; } = TimeSpan.Zero;
|
public TimeSpan TotalTime { get; set; } = TimeSpan.Zero;
|
||||||
public TimeSpan CurrentTime => TimeSpan.FromSeconds(bytesSent / (float)_frameBytes / (1000 / (float)_milliseconds));
|
public TimeSpan CurrentTime => TimeSpan.FromSeconds(bytesSent / (float)_frameBytes / (1000 / (float)_milliseconds));
|
||||||
|
Loading…
Reference in New Issue
Block a user