oh yes true,
I’ve made this mistake, thank you.
But still not working with this:
try {
const headers = {
Authorization: `Bearer ${token}`,
"Client-Id": CLIENT_ID,
};
const raid = await axios.post(
`https://api.twitch.tv/helix/raids`,
{
from_broadcaster_id: FROM,
to_broadcaster_id: TO,
},
{
headers,
}
);
console.log("raid result", raid);
} catch (error) {
console.log("Error when raiding =>", error);
}
I’m still looking for the problem
Still telling me that the Oauth token is missing