I'd like to make a button that operates similarly to using ctrl+z on a keyboard, my initial thought is:
on click do danger.js["undo()"] end
However...
Directly calling internal Decker functions is not advised, as these do not necessarily represent a stable API; prefer passing Lil functions into JS to allow it to manipulate the Decker environment whenever possible.
I'm assuming this part of the reference is referring to what I'm trying to do here, but if that's the case, how would I go about doing it properly?