Hello dear devs friends, I’m trying to create a twitch bot that deletes messages that contains “banned” words from my list (the detection works just fine), but when I’m trying to delete a message using the API, I get a {“error”:“Unauthorized”,“status”:401,“message”:“incorrect user authorization”}. I already checked that I have the good type of token, the scopes are good too… Can’t figure out what the problem is.
Below is the code (using node js and I’m not using tmi.js)
botTwitchPassword → token
botTwitchID → client_id
broadcasterTwitchID → 35709149 (“samideau”)
botUserID → 971899362 (“samidana”)
id → id of the message