fix(discord): add missing autoThread to DiscordGuildChannelConfig type (#35608)
Merged via squash. Prepared head SHA: e62b88bb01bf13ba2759c51095be07c3a47536dc 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:
@@ -106,6 +106,7 @@ Docs: https://docs.openclaw.ai
|
||||
- Signal/config schema: accept `channels.signal.accountUuid` in strict config validation so loop-protection configs no longer fail with an unrecognized-key error. (#35578) Thanks @ingyukoh.
|
||||
- Telegram/config schema: accept `channels.telegram.actions.editMessage` and `createForumTopic` in strict config validation so existing Telegram action toggles no longer fail as unrecognized keys. (#35498) Thanks @ingyukoh.
|
||||
- Agents/cooldowns: default cooldown windows with no recorded failure history to `unknown` instead of `rate_limit`, avoiding false API rate-limit warnings while preserving cooldown recovery probes. (#42911) Thanks @VibhorGautam.
|
||||
- Discord/config typing: expose channel-level `autoThread` on the canonical guild-channel config type so strict config loading matches the existing Discord schema and runtime behavior. (#35608) Thanks @ingyukoh.
|
||||
|
||||
## 2026.3.8
|
||||
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user