fdgt

bits

bits events are fired when a user sends a message to a Twitch channel that contains bits.

Kind: global variable

Parameters

ParamTypeDefaultDescription
bitscountnumber100The number of bits to attach to the message.
colorstringThe color of the user's name in chat.
messagestringThe body of the message.
messageidstringThe ID of the message.
timestampstringThe millisecond timestamp when the message was sent.
useridstringThe ID of the user sending the message.
usernamestringThe 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!"

Simulator