Table of Contents

Method HandleSocketClosed

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

HandleSocketClosed(Func<DiscordClient, SocketClosedEventArgs, Task>)

Fired whenever the underlying websocket connection is terminated.

public EventHandlingBuilder HandleSocketClosed(Func<DiscordClient, SocketClosedEventArgs, Task> handler)

Parameters

handler Func<DiscordClient, SocketClosedEventArgs, Task>

Returns

EventHandlingBuilder