mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 14:30:24 +00:00
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:
@@ -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