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
reasonstringAudit log reason.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
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.