Method ModifyTextChannel
| Improve this Doc View SourceModifyTextChannel(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 |
| DiscordHttpApiException |
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 |
| DiscordHttpApiException |