Exemplo n.º 1
0
        /// <summary>
        /// Invoked when a RESUMED event is fired from Discord's WebSocket server.
        /// </summary>
        /// <param name="response">JSON response.</param>
        public void StateChanged(WebSocketState state)
        {
            DiscordOnStateChangeEventArgs args = new DiscordOnStateChangeEventArgs()
            {
                State = state
            };

            OnStateChangeNotify(args);
        }
Exemplo n.º 2
0
        protected void OnStateChangeNotify(DiscordOnStateChangeEventArgs e)
        {
            EventHandler <DiscordOnStateChangeEventArgs> handler = OnStateChange;

            handler?.Invoke(this, e);
        }