fix: add Discord channel-edit thread params (#5542) (thanks @stumct)

This commit is contained in:
Shadow
2026-02-12 16:45:39 -06:00
committed by Shadow
parent 91b96edfc4
commit d9f3d569a2
2 changed files with 24 additions and 0 deletions

View File

@@ -32,4 +32,27 @@ describe("handleDiscordMessageAction", () => {
expect.any(Object),
);
});
it("forwards thread edit fields for channel-edit", async () => {
await handleDiscordMessageAction({
action: "channel-edit",
params: {
channelId: "123456789",
archived: true,
locked: false,
autoArchiveDuration: 1440,
},
cfg: {},
});
expect(handleDiscordAction).toHaveBeenCalledWith(
expect.objectContaining({
action: "channelEdit",
channelId: "123456789",
archived: true,
locked: false,
autoArchiveDuration: 1440,
}),
expect.any(Object),
);
});
});