Nostrum.Api.modify_guild_channel_positions

You're seeing just the function modify_guild_channel_positions, go back to Nostrum.Api module for more information.
Link to this function

modify_guild_channel_positions(guild_id, positions)

View Source

Specs

modify_guild_channel_positions(Nostrum.Struct.Guild.id(), [
  %{id: integer(), position: integer()}
]) :: error() | {:ok}

Reorders a guild's channels.

This endpoint requires the MANAGE_CHANNELS permission. It fires multiple Nostrum.Consumer.channel_update/0 events.

If successful, returns {:ok, channels}. Otherwise, returns a Nostrum.Api.error/0.

positions is a list of maps that each map a channel id with a position.

Examples

Nostrum.Api.modify_guild_channel_positions(279093381723062272, [%{id: 351500354581692420, position: 2}])
{:ok}