fix: channel ordering

This commit is contained in:
Hampus Kraft
2026-02-20 22:36:48 +00:00
parent fcc8463cd8
commit e11f9bc52e
10 changed files with 438 additions and 19 deletions

View File

@@ -234,6 +234,9 @@ export const ChannelPositionUpdateRequest = z.array(
id: SnowflakeType.describe('The ID of the channel to reposition'),
position: z.number().int().nonnegative().optional().describe('New position for the channel'),
parent_id: SnowflakeType.nullish().describe('New parent category ID'),
preceding_sibling_id: SnowflakeType.nullish().describe(
'ID of the sibling channel that should directly precede this channel after reordering',
),
lock_permissions: z.boolean().optional().describe('Whether to sync permissions with the new parent'),
}),
);