Table of Contents

Method SetVoiceChannelStatusAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

SetVoiceChannelStatusAsync(string, CancellationToken)

Sets a voice channels status.

public Task SetVoiceChannelStatusAsync(string status, CancellationToken cancellationToken = default)

Parameters

status string

Status of the voice channel.

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.