Im getting the error:
[Scripting][error]-Plugin [TPRP Vanilla+ Behavior Pack - 0.0.1] - [Teams.js] ran with error: [TypeError: not a function at <anonymous> (Teams.js:34)]
And here is the code that it errored on
System.runInterval(() => { Teams(); }, 1); //This is line 34)
System.runInterval(() => {
World.sendMessage("This is an interval run " + " sending a message every 30 seconds.");
}, 600);
That block at the bottom is taken straight from the microsoft docs and when I put that in front of the one that is running what Im trying to do, it instead throws an error at the microsoft example, was there any updates to runInterval that were not noted in the docs?