From e54c9d7b9409d12114b10426c023ee1b63da26fd Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Oct 2026 04:25:53 +0000 Subject: [PATCH] Add a thread-only test forum channel to DISCORD_CHANNELS Declare a new forum channel, thread-only-test, in the General category so the DiscordChannel resource is exercised against a real thread-only channel. No existing channel can be converted to a forum, so the entry creates a new channel on the next deploy instead of adopting one by id. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Lnydax1P4kXfUsLZYiKMuL --- src/config/channels.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/config/channels.ts b/src/config/channels.ts index 158a864..c02840e 100644 --- a/src/config/channels.ts +++ b/src/config/channels.ts @@ -160,7 +160,20 @@ export type DiscordChannelConfig = DiscordAdoptedChannelConfig | DiscordNewChann * defaultSortOrder: 'creation_date', * }, */ -export const DISCORD_CHANNELS: readonly DiscordChannelConfig[] = []; +export const DISCORD_CHANNELS: readonly DiscordChannelConfig[] = [ + // Test of the thread-only channel machinery: a new forum channel, because no existing + // text channel can be converted to a forum (Discord does not convert the type). + { + name: 'thread-only-test', + type: 'forum', + parentId: '1358869848138059967', // General + topic: + 'Test channel for Pulumi-managed thread-only (forum) channels. Every post opens a thread.', + defaultSortOrder: 'latest_activity', + defaultForumLayout: 'list', + defaultAutoArchiveDuration: 10080, + }, +]; /** Pulumi resource name for a channel entry (stable across deploys). */ export function discordChannelResourceName(channel: DiscordChannelConfig): string {