fix(discord): add missing autoThread to DiscordGuildChannelConfig type (#35608)

Merged via squash.

Prepared head SHA: e62b88bb01
Co-authored-by: ingyukoh <6015960+ingyukoh@users.noreply.github.com>
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com>
Reviewed-by: @altaywtf
This commit is contained in:
ingyukoh
2026-03-12 03:54:49 +09:00
committed by GitHub
parent 4473242b4f
commit 78b9384aa7
3 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ describe("config discord", () => {
requireMention: false,
users: ["steipete"],
channels: {
general: { allow: true },
general: { allow: true, autoThread: true },
},
},
},
@@ -54,6 +54,7 @@ describe("config discord", () => {
expect(cfg.channels?.discord?.actions?.channels).toBe(true);
expect(cfg.channels?.discord?.guilds?.["123"]?.slug).toBe("friends-of-openclaw");
expect(cfg.channels?.discord?.guilds?.["123"]?.channels?.general?.allow).toBe(true);
expect(cfg.channels?.discord?.guilds?.["123"]?.channels?.general?.autoThread).toBe(true);
},
);
});

View File

@@ -52,6 +52,8 @@ export type DiscordGuildChannelConfig = {
systemPrompt?: string;
/** If false, omit thread starter context for this channel (default: true). */
includeThreadStarter?: boolean;
/** If true, automatically create a thread for each new message in this channel. */
autoThread?: boolean;
};
export type DiscordReactionNotificationMode = "off" | "own" | "all" | "allowlist";