bits
bits events are fired when a user sends a message to a Twitch channel that contains bits.
Kind: global variable
Parameters
| Param | Type | Default | Description |
|---|---|---|---|
| bitscount | number | 100 | The number of bits to attach to the message. |
| color | string | The color of the user's name in chat. | |
| message | string | The body of the message. | |
| messageid | string | The ID of the message. | |
| timestamp | string | The millisecond timestamp when the message was sent. | |
| userid | string | The ID of the user sending the message. | |
| username | string | The username of the user sending the message. |
Examples
Fires a `bits` event with no message
Fires a `bits` event with a custom amount of bits and the message "Woohoo!"