Method LeaveAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
LeaveAsync(CancellationToken)
Leaves this guild.
public Task LeaveAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- ServerErrorException
Thrown when Discord is unable to process the request.