Method ModifyStageAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ModifyStageAsync(Optional<string>, string, CancellationToken)
Modifies a stage topic.
public Task ModifyStageAsync(Optional<string> topic, string reason = null, CancellationToken cancellationToken = default)
Parameters
topicOptional<string>New topic of the stage.
reasonstringAudit log reason.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageChannels permission.
- NotFoundException
Thrown when the channel does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.