mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Document the position behavior for duplicate position values (#3690)
This commit is contained in:
@@ -946,7 +946,7 @@ export interface DiscordRole {
|
||||
name: string
|
||||
/** Integer representation of hexadecimal color code */
|
||||
color: number
|
||||
/** Position of this role */
|
||||
/** Position of this role (roles with the same position are sorted by id) */
|
||||
position: number
|
||||
/** role unicode emoji */
|
||||
unicode_emoji?: string
|
||||
@@ -1028,7 +1028,7 @@ export interface DiscordChannel {
|
||||
type: ChannelTypes
|
||||
/** The id of the guild */
|
||||
guild_id?: string
|
||||
/** Sorting position of the channel */
|
||||
/** Sorting position of the channel (channels with the same position are sorted by id) */
|
||||
position?: number
|
||||
/** Explicit permission overwrites for members and roles */
|
||||
permission_overwrites?: DiscordOverwrite[]
|
||||
|
||||
@@ -565,7 +565,7 @@ export interface CreateGuildChannel {
|
||||
userLimit?: number
|
||||
/** Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission `manage_messages` or `manage_channel`, are unaffected */
|
||||
rateLimitPerUser?: number
|
||||
/** Sorting position of the channel */
|
||||
/** Sorting position of the channel (channels with the same position are sorted by id) */
|
||||
position?: number
|
||||
/** The channel's permission overwrites */
|
||||
permissionOverwrites?: OverwriteReadable[]
|
||||
@@ -656,7 +656,7 @@ export interface ModifyChannel {
|
||||
name?: string
|
||||
/** The type of channel; only conversion between text and news is supported and only in guilds with the "NEWS" feature */
|
||||
type?: ChannelTypes
|
||||
/** The position of the channel in the left-hand listing */
|
||||
/** The position of the channel in the left-hand listing (channels with the same position are sorted by id) */
|
||||
position?: number | null
|
||||
/** 0-1024 character channel topic */
|
||||
topic?: string | null
|
||||
@@ -719,7 +719,7 @@ export interface EditChannelPermissionOverridesOptions extends OverwriteReadable
|
||||
export interface ModifyGuildChannelPositions {
|
||||
/** Channel id */
|
||||
id: BigString
|
||||
/** Sorting position of the channel */
|
||||
/** Sorting position of the channel (channels with the same position are sorted by id) */
|
||||
position?: number | null
|
||||
/** Syncs the permission overwrites with the new parent, if moving to a new category */
|
||||
lockPositions?: boolean | null
|
||||
@@ -1079,7 +1079,7 @@ export interface EditGuildRole {
|
||||
export interface ModifyRolePositions {
|
||||
/** The role id */
|
||||
id: BigString
|
||||
/** The sorting position for the role. */
|
||||
/** The sorting position for the role. (roles with the same position are sorted by id) */
|
||||
position?: number | null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user