Discore
Show / Hide Table of Contents

Method ModifyCategoryChannel

| Improve this Doc View Source

ModifyCategoryChannel(Snowflake, GuildCategoryChannelOptions)

Updates the settings of a guild category channel.

Requires ManageChannels.

Declaration
public Task<DiscordGuildCategoryChannel> ModifyCategoryChannel(Snowflake categoryChannelId, GuildCategoryChannelOptions options)
Parameters
Type Name Description
Snowflake categoryChannelId

The ID of the guild category channel to modify.

GuildCategoryChannelOptions options

A set of options to modify the channel with.

Returns
Type Description
Task<DiscordGuildCategoryChannel>

Returns the updated guild category channel.

Exceptions
Type Condition
ArgumentNullException

Thrown if options is null.

DiscordHttpApiException
| Improve this Doc View Source

ModifyCategoryChannel(DiscordGuildCategoryChannel, GuildCategoryChannelOptions)

Updates the settings of a guild category channel.

Requires ManageChannels.

Declaration
public Task<DiscordGuildCategoryChannel> ModifyCategoryChannel(DiscordGuildCategoryChannel categoryChannel, GuildCategoryChannelOptions options)
Parameters
Type Name Description
DiscordGuildCategoryChannel categoryChannel

The guild category channel to modify.

GuildCategoryChannelOptions options

A set of options to modify the channel with.

Returns
Type Description
Task<DiscordGuildCategoryChannel>

Returns the updated guild category channel.

Exceptions
Type Condition
ArgumentNullException

Thrown if categoryChannel or options is null.

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