Discore
Show / Hide Table of Contents

Method ModifyNewsChannel

| Improve this Doc View Source

ModifyNewsChannel(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 options is null.

DiscordHttpApiException
| Improve this Doc View Source

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 newsChannel or options is null.

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