Skip to content

How to send the command to ask for Twitch capabilities COMMANDS, MEMBERSHIP, TAGS #554

Closed Answered by AlcaDesign
arconom asked this question in Q&A
Discussion options

You must be logged in to vote

tmi.js does this automatically.

tmi.js/lib/client.js

Lines 1189 to 1193 in e4547c0

let caps = 'twitch.tv/tags twitch.tv/commands';
if(!this._skipMembership) {
caps += ' twitch.tv/membership';
}
this.ws.send('CAP REQ :' + caps);

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by AlcaDesign
Comment options

You must be logged in to vote
2 replies
@AlcaDesign
Comment options

@arconom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants