mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-25 23:47:20 +00:00
14 lines
344 B
TypeScript
14 lines
344 B
TypeScript
import { readStringParam } from "../../../../src/agents/tools/common.js";
|
|
|
|
export function readDiscordParentIdParam(
|
|
params: Record<string, unknown>,
|
|
): string | null | undefined {
|
|
if (params.clearParent === true) {
|
|
return null;
|
|
}
|
|
if (params.parentId === null) {
|
|
return null;
|
|
}
|
|
return readStringParam(params, "parentId");
|
|
}
|