Method CreateGuildChannelAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
CreateGuildChannelAsync(ulong, string, DiscordChannelType, ulong?, Optional<string>, int?, int?, IEnumerable<DiscordOverwriteBuilder>, bool?, Optional<int?>, DiscordVideoQualityMode?, int?, string, DiscordAutoArchiveDuration?, DefaultReaction?, IEnumerable<DiscordForumTagBuilder>, DiscordDefaultSortOrder?)
Creates a guild channel
public Task<DiscordChannel> CreateGuildChannelAsync(ulong id, string name, DiscordChannelType type, ulong? parent, Optional<string> topic, int? bitrate, int? userLimit, IEnumerable<DiscordOverwriteBuilder> overwrites, bool? nsfw, Optional<int?> perUserRateLimit, DiscordVideoQualityMode? qualityMode, int? position, string reason, DiscordAutoArchiveDuration? defaultAutoArchiveDuration = null, DefaultReaction? defaultReactionEmoji = null, IEnumerable<DiscordForumTagBuilder> availableTags = null, DiscordDefaultSortOrder? defaultSortOrder = null)
Parameters
id
ulongChannel ID
name
stringChannel name
type
DiscordChannelTypeChannel type
parent
ulong?Channel parent ID
topic
Optional<string>Channel topic
bitrate
int?Voice channel bitrate
userLimit
int?Voice channel user limit
overwrites
IEnumerable<DiscordOverwriteBuilder>Channel overwrites
nsfw
bool?Whether this channel should be marked as NSFW
perUserRateLimit
Optional<int?>Slow mode timeout for users.
qualityMode
DiscordVideoQualityMode?Voice channel video quality mode.
position
int?Sorting position of the channel.
reason
stringReason this channel was created
defaultAutoArchiveDuration
DiscordAutoArchiveDuration?Default duration for newly created forum posts in the channel.
defaultReactionEmoji
DefaultReactionDefault emoji used for reacting to forum posts.
availableTags
IEnumerable<DiscordForumTagBuilder>Tags available for use by forum posts in the channel.
defaultSortOrder
DiscordDefaultSortOrder?Default sorting order for forum posts in the channel.
Returns
- Task<DiscordChannel>