Discore
Show / Hide Table of Contents

Method ModifyTextChannel

| Improve this Doc View Source

ModifyTextChannel(Snowflake, GuildTextChannelOptions)

Updates the settings of a guild text channel.

Requires ManageChannels.

Declaration
public Task<DiscordGuildTextChannel> ModifyTextChannel(Snowflake textChannelId, GuildTextChannelOptions options)
Parameters
Type Name Description
Snowflake textChannelId

The ID of the guild text channel to modify.

GuildTextChannelOptions options

A set of options to modify the channel with.

Returns
Type Description
Task<DiscordGuildTextChannel>

Returns the updated guild text channel.

Exceptions
Type Condition
ArgumentNullException

Thrown if options is null.

DiscordHttpApiException
| Improve this Doc View Source

ModifyTextChannel(DiscordGuildTextChannel, GuildTextChannelOptions)

Updates the settings of a guild text channel.

Requires ManageChannels.

Declaration
public Task<DiscordGuildTextChannel> ModifyTextChannel(DiscordGuildTextChannel textChannel, GuildTextChannelOptions options)
Parameters
Type Name Description
DiscordGuildTextChannel textChannel

The guild text channel to modify.

GuildTextChannelOptions options

A set of options to modify the channel with.

Returns
Type Description
Task<DiscordGuildTextChannel>

Returns the updated guild text channel.

Exceptions
Type Condition
ArgumentNullException

Thrown if textChannel or options is null.

DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX