Table of Contents

Method LeaveAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

LeaveAsync(CancellationToken)

Leaves a thread.

public Task LeaveAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task

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.