Table of Contents

Interface IGatewayController

Namespace
DSharpPlus.Net.Gateway
Assembly
DSharpPlus.dll

Provides a low-level interface for controlling individual gateway clients and their connections.

public interface IGatewayController

Methods

HeartbeatedAsync(IGatewayClient)

Called when the gateway heartbeated correctly and got an ACK from Discord

ReconnectFailedAsync(IGatewayClient)

Called when a reconnecting attempt definitively failed and DSharpPlus can no longer reconnect on its own.

ReconnectRequestedAsync(IGatewayClient)

Called when Discord requests a reconnect. This does not imply that DSharpPlus' reconnection attempt failed.

ResumeAttemptedAsync(IGatewayClient)

Called when DSharpPlus attempts to resume a gateway session.

SessionInvalidatedAsync(IGatewayClient)

Called when a session was invalidated and DSharpPlus failed to resume or reconnect.

ZombiedAsync(IGatewayClient)

Called when the gateway connection zombies.