Table of Contents

Method CreateStageChannelAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

CreateStageChannelAsync(string, IEnumerable<DiscordOverwriteBuilder>, string)

Creates a new stage channel in this guild.

[RequiresFeature(Features.Community)]
public Task<DiscordChannel> CreateStageChannelAsync(string name, IEnumerable<DiscordOverwriteBuilder> overwrites = null, string reason = null)

Parameters

name string

Name of the new stage channel.

overwrites IEnumerable<DiscordOverwriteBuilder>

Permission overwrites for this stage channel.

reason string

Reason for audit logs.

Returns

Task<DiscordChannel>

The newly-created stage channel.

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageChannels.

NotFoundException

Thrown when the guild does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.

NotSupportedException

Thrown when the guilds has not enabled community.