Method OpenStageAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
OpenStageAsync(string, bool, ulong?, string)
Opens a stage.
public Task<DiscordStageInstance> OpenStageAsync(string topic, bool sendStartNotification = false, ulong? scheduledEventId = null, string reason = null)
Parameters
topic
stringTopic of the stage.
sendStartNotification
boolWhether @everyone should be notified.
scheduledEventId
ulong?The associated scheduled event id.
reason
stringAudit log reason.
Returns
- Task<DiscordStageInstance>
Stage instance
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.