XLS202
October 4, 2018, 8:26pm
1
Hello,
I want to write a private message via the IRC chat, but if I send this line for example to the server:
PRIVMSG #jtv :/w Text.
I get this response:
tmi.twitch.tv NOTICE #jtv :You don’t have permission to perform that action.
While connecting I send this line to the server:
CAP REQ :twitch.tv/commands
The response of the validating of my token says that:
{
“client_id”: “lalala”,
“login”: “lalala”,
“scopes”: [
“channel:moderate”,
“chat:edit”,
“chat:read”,
“whispers:edit”,
“whispers:read”
],
“user_id”: “lalala”
}
Today I changed my bot from using the old access token that was valid for years to the token that is only valid for a few hours. Before that change everything worked fine.
Any idea how to fix this?
XLS202
XLS202:
PRIVMSG #jtv :/w Text.
Should be:
PRIVMSG #jtv :.w someperson Text.
Further more send to the channel the bot is rather than #jtv iirc JTV as a send to got closed.
XLS202
October 4, 2018, 8:34pm
3
Did this change in the last weeks? Or why did it work before?
Do you mean it like that?
PRIVMSG #STREAMER :.w someperson Text.
No idea. I’ve never used /w
in a irc bot myself. As /
should invoke a server command, and /w
is not a server command
And yes like that.
XLS202
October 4, 2018, 8:39pm
5
Thank you I will try it tomorrow.
george
October 4, 2018, 9:58pm
6
It appears you still need the chat_login
scope to send whispers over IRC.
1 Like
XLS202
October 4, 2018, 11:50pm
7
I didnt try it now, but in the docs is written:
(Deprecated — cannot be requested by new clients.)
Log into chat and send messages.
Is there any way to get it nevertheless?
george
October 5, 2018, 12:03am
8
Use a client ID created earlier than a few weeks ago or wait for Twitch to fix the issue.
1 Like
system
Closed
November 4, 2018, 12:06am
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.