Class GuildChannelPositionProperties
public class GuildChannelPositionProperties
- Inheritance
-
GuildChannelPositionProperties
- Inherited Members
Constructors
GuildChannelPositionProperties(ulong)
public GuildChannelPositionProperties(ulong id)
Parameters
id
ulongChannel ID.
Properties
Id
Channel ID.
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
LockPermissions
Syncs the permission overwrites with the new parent, if moving to a new category.
[JsonPropertyName("lock_permissions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? LockPermissions { get; set; }
Property Value
- bool?
ParentId
The new parent ID for the channel that is moved.
[JsonPropertyName("parent_id")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ulong? ParentId { get; set; }
Property Value
Position
Sorting position of the channel.
[JsonPropertyName("position")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? Position { get; set; }
Property Value
- int?
Methods
WithId(ulong)
Channel ID.
public GuildChannelPositionProperties WithId(ulong id)
Parameters
id
ulong
Returns
WithLockPermissions(bool?)
Syncs the permission overwrites with the new parent, if moving to a new category.
public GuildChannelPositionProperties WithLockPermissions(bool? lockPermissions = true)
Parameters
lockPermissions
bool?
Returns
WithParentId(ulong?)
The new parent ID for the channel that is moved.
public GuildChannelPositionProperties WithParentId(ulong? parentId)
Parameters
parentId
ulong?
Returns
WithPosition(int?)
Sorting position of the channel.
public GuildChannelPositionProperties WithPosition(int? position)
Parameters
position
int?