Table of Contents

Method ModifyChannelAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

ModifyChannelAsync(ulong, string, int?, Optional<string>, bool?, Optional<ulong?>, int?, int?, Optional<int?>, Optional<DiscordVoiceRegion>, DiscordVideoQualityMode?, Optional<DiscordChannelType>, IEnumerable<DiscordOverwriteBuilder>, string, Optional<DiscordChannelFlags>, IEnumerable<DiscordForumTagBuilder>?, Optional<DiscordAutoArchiveDuration?>, Optional<DefaultReaction?>, Optional<int>, Optional<DiscordDefaultSortOrder?>, Optional<DiscordDefaultForumLayout>)

Modifies a channel

public Task ModifyChannelAsync(ulong id, string name, int? position, Optional<string> topic, bool? nsfw, Optional<ulong?> parent, int? bitrate, int? userLimit, Optional<int?> perUserRateLimit, Optional<DiscordVoiceRegion> rtcRegion, DiscordVideoQualityMode? qualityMode, Optional<DiscordChannelType> type, IEnumerable<DiscordOverwriteBuilder> permissionOverwrites, string reason, Optional<DiscordChannelFlags> flags, IEnumerable<DiscordForumTagBuilder>? availableTags, Optional<DiscordAutoArchiveDuration?> defaultAutoArchiveDuration, Optional<DefaultReaction?> defaultReactionEmoji, Optional<int> defaultPerUserRatelimit, Optional<DiscordDefaultSortOrder?> defaultSortOrder, Optional<DiscordDefaultForumLayout> defaultForumLayout)

Parameters

id ulong

Channel ID

name string

New channel name

position int?

New channel position

topic Optional<string>

New channel topic

nsfw bool?

Whether this channel should be marked as NSFW

parent Optional<ulong?>

New channel parent

bitrate int?

New voice channel bitrate

userLimit int?

New voice channel user limit

perUserRateLimit Optional<int?>

Slow mode timeout for users.

rtcRegion Optional<DiscordVoiceRegion>

New region override.

qualityMode DiscordVideoQualityMode?

New video quality mode.

type Optional<DiscordChannelType>

New channel type.

permissionOverwrites IEnumerable<DiscordOverwriteBuilder>

New channel permission overwrites.

reason string

Reason why this channel was modified

flags Optional<DiscordChannelFlags>

Channel flags.

availableTags IEnumerable<DiscordForumTagBuilder>

Tags available for use by forum posts in the channel.

defaultAutoArchiveDuration Optional<DiscordAutoArchiveDuration?>

Default duration for newly created forum posts in the channel.

defaultReactionEmoji Optional<DefaultReaction>

Default emoji used for reacting to forum posts.

defaultPerUserRatelimit Optional<int>

Default per-user ratelimit for forum posts in the channel.

defaultSortOrder Optional<DiscordDefaultSortOrder?>

Default sorting order for forum posts in the channel.

defaultForumLayout Optional<DiscordDefaultForumLayout>

Default layout for forum posts in the channel.

Returns

Task

ModifyChannelAsync(ulong, Action<ChannelEditModel>)

Modifies a channel

public Task ModifyChannelAsync(ulong channelId, Action<ChannelEditModel> action)

Parameters

channelId ulong

Channel ID

action Action<ChannelEditModel>

Channel modifications

Returns

Task