feat(discord): support forum tag edits via channel-edit (#12070) (thanks @xiaoyaner0201)

This commit is contained in:
Shadow
2026-02-20 21:14:27 -06:00
committed by Shadow
parent b7644d61a2
commit b294342d7f
7 changed files with 96 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ import {
import {
type ActionGate,
jsonResult,
parseAvailableTags,
readNumberParam,
readStringArrayParam,
readStringParam,
@@ -334,6 +335,7 @@ export async function handleDiscordGuildAction(
const autoArchiveDuration = readNumberParam(params, "autoArchiveDuration", {
integer: true,
});
const availableTags = parseAvailableTags(params.availableTags);
const channel = accountId
? await editChannelDiscord(
{
@@ -347,6 +349,7 @@ export async function handleDiscordGuildAction(
archived,
locked,
autoArchiveDuration: autoArchiveDuration ?? undefined,
availableTags,
},
{ accountId },
)
@@ -361,6 +364,7 @@ export async function handleDiscordGuildAction(
archived,
locked,
autoArchiveDuration: autoArchiveDuration ?? undefined,
availableTags,
});
return jsonResult({ ok: true, channel });
}