extendsub
extendsub
events are fired when a user extends their existing non-gifted subscription to a Twitch channel.
Kind: global variable
Parameters
Param | Type | Default | Description |
---|---|---|---|
color | string | The color of the user's name in chat. | |
messageid | string | The ID of the message. | |
months | number | 3 | The number of months the subscription is being extended. |
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. | |
tier | number | 1 | The tier of the subscription being extended. |
Examples
Fires an `extendsub` event
Fires an `extendsub` event to extend the user's subscription by 6 months
Fires an `extendsub` event for a Tier 3 subscription