/// <summary>
 /// Creates a new Lavalink service with specified configuration options.
 /// </summary>
 /// <param name="cfg">Lavalink configuration.</param>
 /// <param name="client">Discord client to which the Lavalink will be attached.</param>
 public LavalinkService(CompanionCubeConfigLavalink cfg, DiscordClient client)
 {
     this.Configuration   = cfg;
     this.Discord         = client;
     this.Discord.Ready  += this.Client_Ready;
     this._trackException = new AsyncEvent <LavalinkGuildConnection, TrackExceptionEventArgs>("CCUBE_LAVALINK_TRACK_EXCEPTION", TimeSpan.Zero, this.EventExceptionHandler);
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new Lavalink service with specified configuration options.
 /// </summary>
 /// <param name="cfg">Lavalink configuration.</param>
 /// <param name="client">Discord client to which the Lavalink will be attached.</param>
 public LavalinkService(CompanionCubeConfigLavalink cfg, DiscordClient client)
 {
     this.Configuration = cfg;
     client.Ready      += this.Client_Ready;
 }