App token invalid

It is a discord bot written in discord.js (with Discord Bot Maker app).

This is my command code:

{"name":"store","permissions":"NONE","restriction":"1","_id":"qFdDF","actions":[{"behavior":"0","interpretation":"0","code":"const fetch = require(\"node-fetch\");\nfetch('https://id.twitch.tv/oauth2/token?client_id=XXXXXXXXXX&client_secret=XXXXXXXXXXXXXXXXXXXXXXX&grant_type=client_credentials', {\n method: 'post'\n })\n .then(res => res.json())\n .then(json => {\n console.log(json);\n const token = json.access_token;\n Actions.storeValue(token, 1, \"token\", cache)\n });","storage":"0","varName":"","name":"Run Script"},{"time":"5","measurement":"1","name":"Wait"},{"channel":"0","varName":"","message":"${tempVars(\"token\")}","storage":"0","varName2":"","iffalse":"0","iffalseVal":"","name":"Send Message"},{"token":"${tempVars(\"token\")}","user":"","pass":"","url":"https://api.twitch.tv/helix/streams","path":"","storage":"0","varName":"","debugMode":"1","headers":"-H \"Authorization: Bearer ${tempVars(\"token\")}\"\n-H \"Client-ID: nds0mn52n8x9iffq928jfn83x2youd\"","name":"Store Json From WebAPI"}]}

And this is the console error REMOVED