Table of Contents

Method RemoveVoiceChannelStatusAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

RemoveVoiceChannelStatusAsync(string?, CancellationToken)

Removes a voice channels status.

public Task RemoveVoiceChannelStatusAsync(string? reason = null, CancellationToken cancellationToken = default)

Parameters

reason string

Audit log reason.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task

Exceptions

NotFoundException

Thrown when the voice channel does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.