DSharpPlus.Rest/DiscordRestClient.cs
/// <summary>
/// Updates a channel's position
/// </summary>
/// <param name="guild_id">Guild id</param>
/// <param name="channel_id">Channel id</param>
/// <param name="position">Channel position</param>
/// <param name="reason">Reason this position was modified</param>
/// <returns></returns>
Updates a channel's position
Updates a channel ' s position
public Task UpdateChannelPositionAsync(ulong guild_id, ulong channel_id, int position, string reason)
        {
            var rgcrps = new List<RestGuildChannelReorderPayload>()
            {
                new RestGuildChannelReorderPayload { ChannelId = channel_id, Position = position }
            };
            return this.ApiClient.ModifyGuildChannelPositionAsync(guild_id, rgcrps, reason);
        }
public Task UpdateChannelPositionAsync ( ulong guild_id , ulong channel_id , int position , string reason ) { var rgcrps = new List < RestGuildChannelReorderPayload > ( ) { new RestGuildChannelReorderPayload { ChannelId = channel_id , Position = position } } ; return this . ApiClient . ModifyGuildChannelPositionAsync ( guild_id , rgcrps , reason ) ; }
Updates a channel's position
Updates a channel ' s position
None
guild_id
ulong
None
channel_id
ulong
None
position
int
None
reason
string
Reason this position was modified
Reason this position was modified