-
-
Notifications
You must be signed in to change notification settings - Fork 69.2k
[Bug] DiscordGuildChannelConfig type missing autoThread field #35607
Copy link
Copy link
Closed
Description
Bug Description
The DiscordGuildChannelConfig type in types.discord.ts is missing the autoThread field, even though:
- The Zod schema (
DiscordGuildChannelSchema) includesautoThread: z.boolean().optional()at line 358 - Runtime code actively uses it in
threading.ts:370,message-handler.process.ts:257, andallow-list.ts:501 - The runtime code in
allow-list.tshad to define its own local type withautoThread?: boolean(line 41) to work around the missing canonical type field
Impact
- Type safety gap: the canonical type doesn't reflect a field that the schema validates and runtime reads
- Code in
allow-list.tsmaintains a shadow type definition that could drift from the canonical type
Root Cause
Type/schema drift: autoThread was added to the Zod schema and runtime code but not to the canonical TypeScript type in types.discord.ts.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.