Table of Contents

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 string

Topic of the stage.

sendStartNotification bool

Whether @everyone should be notified.

scheduledEventId ulong?

The associated scheduled event id.

reason string

Audit 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.