Skip to content

How do you make it detect if user sends bits? #475

Answered by spddl
Cass-dev-web asked this question in Q&A
Discussion options

You must be logged in to vote

have you tried that?

Cheer

Username has cheered to a channel.

Parameters:

  • channel: String - Channel name
  • userstate: Object - Userstate object
  • message: String - Message
client.on("cheer", (channel, userstate, message) => {
    // Do your stuff.
});

Note: The amount of bits the user sent is inside the userstate (userstate.bits) - Read the Twitch API documentation for more information.

Last docs

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Cass-dev-web
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