/// <summary> /// Method to handle the first message from the Discord websocket /// </summary> /// <param name="helloResume">Gateway payload sent from the websocket</param> private async Task OnHelloMessageAsync(GatewayHello helloResume) { this._socketClient.StartHeartbeatTimer(helloResume.HeartbeatInterval); GatewayIdentify gatewayIdentify = new GatewayIdentify(); _socketConfig = JsonStorage.GetConfig(); gatewayIdentify.Token = _socketConfig.Token; await this._socketClient.SendAsync(OpCodes.Identity, gatewayIdentify); }