Method DisconnectAsync
- Namespace
- DSharpPlus.Net.WebSocket
- Assembly
- DSharpPlus.dll
DisconnectAsync(int, string)
Disconnects the WebSocket connection.
public Task DisconnectAsync(int code = 1000, string message = "")
Parameters
code
intmessage
string
Returns
- Task