Discord: preserve accountId in message actions (refs #1489)

This commit is contained in:
Sergii Kozak
2026-01-22 23:51:58 -08:00
parent 551685351f
commit dc89bc4004
9 changed files with 181 additions and 9 deletions

View File

@@ -342,6 +342,9 @@ export function createMessageTool(options?: MessageToolOptions): AnyAgentTool {
}) as ChannelMessageActionName;
const accountId = readStringParam(params, "accountId") ?? agentAccountId;
if (accountId) {
params.accountId = accountId;
}
const gateway = {
url: readStringParam(params, "gatewayUrl", { trim: false }),