/// <summary> /// Invoked when a READY event is fired from Discord's WebSocket server. /// </summary> /// <param name="response">JSON response.</param> public void IsReady(string response) { ReadyResponse ready = serializer.Deserialize <ReadyResponse>(response); DiscordOnReadyEventArgs args = new DiscordOnReadyEventArgs() { Ready = ready.EventData }; OnReadyNotify(args); }
protected void OnReadyNotify(DiscordOnReadyEventArgs e) { EventHandler <DiscordOnReadyEventArgs> handler = OnReady; handler?.Invoke(this, e); }