Discore
Show / Hide Table of Contents

Method ModifyGuildChannelPositions

| Improve this Doc View Source

ModifyGuildChannelPositions(Snowflake, IEnumerable<PositionOptions>)

Changes the positions of channels in the specified guild. The list of positions does not need to include every channel, it just needs the channels that are being moved.

Requires ManageChannels.

Declaration
public Task ModifyGuildChannelPositions(Snowflake guildId, IEnumerable<PositionOptions> positions)
Parameters
Type Name Description
Snowflake guildId
IEnumerable<PositionOptions> positions
Returns
Type Description
Task
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
| Improve this Doc View Source

ModifyGuildChannelPositions(DiscordGuild, IEnumerable<PositionOptions>)

Changes the positions of channels in the specified guild. The list of positions does not need to include every channel, it just needs the channels that are being moved.

Requires ManageChannels.

Declaration
public Task ModifyGuildChannelPositions(DiscordGuild guild, IEnumerable<PositionOptions> positions)
Parameters
Type Name Description
DiscordGuild guild
IEnumerable<PositionOptions> positions
Returns
Type Description
Task
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX