public StreamRequest(CommandEventArgs e, string query, MusicControls mc, bool radio = false) { if (e == null) throw new ArgumentNullException(nameof(e)); if (query == null) throw new ArgumentNullException(nameof(query)); this.MusicControls = mc; this.Server = e.Server; this.Query = query; this.RadioLink = radio; Task.Run(() => ResolveStreamLink()); mc.SongQueue.Add(this); }
public StreamRequest(CommandEventArgs e, string query, MusicControls mc, bool radio = false) { if (e == null) { throw new ArgumentNullException(nameof(e)); } if (query == null) { throw new ArgumentNullException(nameof(query)); } this.MusicControls = mc; this.Server = e.Server; this.Query = query; this.RadioLink = radio; mc.SongQueue.Add(this); }
public StreamRequest(CommandEventArgs e, string query, MusicControls mc, MusicType musicType = MusicType.Normal) { if (e == null) { throw new ArgumentNullException(nameof(e)); } if (query == null) { throw new ArgumentNullException(nameof(query)); } this.MusicControls = mc; this.Server = e.Server; this.Query = query; this.LinkType = musicType; mc.AddSong(this); }
public StreamRequest(CommandEventArgs e, string query, MusicControls mc, DiscordClient c, bool radio = false) { if (e == null) { throw new ArgumentNullException(nameof(e)); } if (query == null) { throw new ArgumentNullException(nameof(query)); } this.MusicControls = mc; this.Server = e.Server; this.Query = query; this.RadioLink = radio; this._client = c; Task.Run(() => ResolveStreamLink()); mc.SongQueue.Add(this); }