Can't appendChild to a FRAME

hey there,
i’m using figma.getNodeById() to get my node
if i console.log(figma.getNodeById(id).type) i get FRAME
but i can’t figma.getNodeById(id).appendChild, error says its a BaseNode, can’t have kids.
(i tried storing it in a different variable, and tried parent/child if i just missed one level but doesn’t seem to find it)

I’m not sure how to resolve this, any help would be greatly appreciated!

found the solution: figma.getElementById(id) as FrameNode