Table of Contents
API reference

Method CreateApplicationChannelAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

CreateApplicationChannelAsync(string, ulong, DiscordChannel?, Optional<string>, IEnumerable<DiscordOverwriteBuilder>?, bool?, Optional<int?>, ThreadAutoArchiveDuration, Optional<ChannelFlags?>, string?, CancellationToken)

Creates an application-powered channel. This capability is undocumented by Discord and may require guild-specific access.

public Task<DiscordChannel> CreateApplicationChannelAsync(string name, ulong applicationId, DiscordChannel? parent = null, Optional<string> topic = default, IEnumerable<DiscordOverwriteBuilder>? overwrites = null, bool? nsfw = null, Optional<int?> perUserRateLimit = default, ThreadAutoArchiveDuration defaultAutoArchiveDuration = ThreadAutoArchiveDuration.OneDay, Optional<ChannelFlags?> flags = default, string? reason = null, CancellationToken cancellationToken = default)

Parameters

name string

Name of the new channel.

applicationId ulong

ID of the application powering the channel.

parent DiscordChannel

Category to put the channel in.

topic Optional<string>

Topic of the channel.

overwrites IEnumerable<DiscordOverwriteBuilder>

Permission overwrites for the channel.

nsfw bool?

Whether the channel is age restricted.

perUserRateLimit Optional<int?>

Slow mode timeout for users.

defaultAutoArchiveDuration ThreadAutoArchiveDuration

Default auto archive duration for new threads.

flags Optional<ChannelFlags?>

Flags of the new channel.

reason string

Reason for the audit log.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordChannel>

The newly created channel.