Table of Contents

Class GuildChannelPositionProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class GuildChannelPositionProperties
Inheritance
GuildChannelPositionProperties
Inherited Members

Constructors

GuildChannelPositionProperties(ulong)

public GuildChannelPositionProperties(ulong id)

Parameters

id ulong

Channel ID.

Properties

Id

Channel ID.

[JsonPropertyName("id")]
public ulong Id { get; set; }

Property Value

ulong

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

ulong?

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

GuildChannelPositionProperties

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

GuildChannelPositionProperties

WithParentId(ulong?)

The new parent ID for the channel that is moved.

public GuildChannelPositionProperties WithParentId(ulong? parentId)

Parameters

parentId ulong?

Returns

GuildChannelPositionProperties

WithPosition(int?)

Sorting position of the channel.

public GuildChannelPositionProperties WithPosition(int? position)

Parameters

position int?

Returns

GuildChannelPositionProperties