How do you make it detect if user sends bits? #475
Answered
by
spddl
Cass-dev-web
asked this question in
Q&A
-
Was wondering if you could have an event of when a user sends bits through chat. |
Beta Was this translation helpful? Give feedback.
Answered by
spddl
Jun 16, 2021
Replies: 1 comment
-
have you tried that? CheerUsername has cheered to a channel. Parameters:
client.on("cheer", (channel, userstate, message) => {
// Do your stuff.
}); Note: The amount of bits the user sent is inside the userstate ( |
Beta Was this translation helpful? Give feedback.
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
have you tried that?
Cheer
Username has cheered to a channel.
Parameters:
channel
: String - Channel nameuserstate
: Object - Userstate objectmessage
: String - MessageNote: The amount of bits the user sent is inside the userstate (
userstate.bits
) - Read the Twitch API documentation for more information.Last docs