mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 04:57:40 +00:00
Discord: handle thread edit params
This commit is contained in:
@@ -322,6 +322,11 @@ export async function handleDiscordGuildAction(
|
||||
const rateLimitPerUser = readNumberParam(params, "rateLimitPerUser", {
|
||||
integer: true,
|
||||
});
|
||||
const archived = typeof params.archived === "boolean" ? params.archived : undefined;
|
||||
const locked = typeof params.locked === "boolean" ? params.locked : undefined;
|
||||
const autoArchiveDuration = readNumberParam(params, "autoArchiveDuration", {
|
||||
integer: true,
|
||||
});
|
||||
const channel = accountId
|
||||
? await editChannelDiscord(
|
||||
{
|
||||
@@ -332,6 +337,9 @@ export async function handleDiscordGuildAction(
|
||||
parentId,
|
||||
nsfw,
|
||||
rateLimitPerUser: rateLimitPerUser ?? undefined,
|
||||
archived,
|
||||
locked,
|
||||
autoArchiveDuration: autoArchiveDuration ?? undefined,
|
||||
},
|
||||
{ accountId },
|
||||
)
|
||||
@@ -343,6 +351,9 @@ export async function handleDiscordGuildAction(
|
||||
parentId,
|
||||
nsfw,
|
||||
rateLimitPerUser: rateLimitPerUser ?? undefined,
|
||||
archived,
|
||||
locked,
|
||||
autoArchiveDuration: autoArchiveDuration ?? undefined,
|
||||
});
|
||||
return jsonResult({ ok: true, channel });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user