Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }