Method LeaveAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
LeaveAsync(CancellationToken)
Leaves a thread.
public Task LeaveAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- UnauthorizedException
Thrown when the client has no access to this thread.
- NotFoundException
Thrown when the thread does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.