Method ModifyNewsChannel
| Improve this Doc View SourceModifyNewsChannel(Snowflake, GuildNewsChannelOptions)
Updates the settings of a guild news channel.
Requires ManageChannels.
Declaration
public Task<DiscordGuildNewsChannel> ModifyNewsChannel(Snowflake newsChannelId, GuildNewsChannelOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Snowflake | newsChannelId | The ID of the guild news channel to modify. |
| GuildNewsChannelOptions | options | A set of options to modify the channel with. |
Returns
| Type | Description |
|---|---|
| Task<DiscordGuildNewsChannel> | Returns the updated guild news channel. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| DiscordHttpApiException |
ModifyNewsChannel(DiscordGuildNewsChannel, GuildNewsChannelOptions)
Updates the settings of a guild news channel.
Requires ManageChannels.
Declaration
public Task<DiscordGuildNewsChannel> ModifyNewsChannel(DiscordGuildNewsChannel newsChannel, GuildNewsChannelOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscordGuildNewsChannel | newsChannel | The guild news channel to modify. |
| GuildNewsChannelOptions | options | A set of options to modify the channel with. |
Returns
| Type | Description |
|---|---|
| Task<DiscordGuildNewsChannel> | Returns the updated guild news channel. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| DiscordHttpApiException |