fix(ci): restore discord reaction account context

This commit is contained in:
Vincent Koc
2026-04-04 01:49:57 +09:00
parent 51f6bc4940
commit ddaef48421
2 changed files with 7 additions and 2 deletions

View File

@@ -114,7 +114,9 @@ export async function handleDiscordMessagingAction(
cfg,
accountId: accountId ?? "default",
})
: undefined;
: accountId
? { accountId }
: undefined;
const withReactionRuntimeOptions = <T extends Record<string, unknown>>(extra?: T) => ({
...(reactionRuntimeOptions ?? cfgOptions),
...(extra ?? {}),

View File

@@ -940,7 +940,10 @@ export async function processDiscordMessage(
}
}
} else if (shouldSendAckReaction && ackReaction && removeAckAfterReply) {
void discordAdapter.removeReaction?.(ackReaction)?.catch((err) => {
void removeReactionDiscord(messageChannelId, message.id, ackReaction, {
rest: discordRest,
accountId,
}).catch((err) => {
logAckFailure({
log: logVerbose,
channel: "discord",