mirror of https://github.com/openclaw/openclaw.git
14 lines
323 B
TypeScript
14 lines
323 B
TypeScript
import { readStringParam } from "../runtime-api.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");
|
|
}
|