Method UpdateChannelPositionAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
UpdateChannelPositionAsync(ulong, ulong, int, string, bool?, ulong?)
Updates a channel's position
public Task UpdateChannelPositionAsync(ulong guildId, ulong channelId, int position, string reason, bool? lockPermissions = null, ulong? parentId = null)
Parameters
guildId
ulongGuild ID
channelId
ulongChannel ID
position
intChannel position
reason
stringReason this position was modified
lockPermissions
bool?Whether to sync channel permissions with the parent, if moving to a new category.
parentId
ulong?The new parent id if the channel is to be moved to a new category.
Returns
- Task