Table of Contents

Method LeaveAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

LeaveAsync(CancellationToken)

Leaves this guild.

public Task LeaveAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task

Exceptions

ServerErrorException

Thrown when Discord is unable to process the request.