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>