fdgt

extendsub

extendsub events are fired when a user extends their existing non-gifted subscription to a Twitch channel.

Kind: global variable

Parameters

ParamTypeDefaultDescription
colorstringThe color of the user's name in chat.
messageidstringThe ID of the message.
monthsnumber3The number of months the subscription is being extended.
timestampstringThe millisecond timestamp when the message was sent.
useridstringThe ID of the user sending the message.
usernamestringThe username of the user sending the message.
tiernumber1The tier of the subscription being extended.

Examples

Fires an `extendsub` event

  1. JavaScript
client.say('#channel', ''extendsub'')

Fires an `extendsub` event to extend the user's subscription by 6 months

  1. JavaScript
client.say('#channel', 'extendsub --months 6')

Fires an `extendsub` event for a Tier 3 subscription

  1. JavaScript
client.say('#channel', 'extendsub --tier 3')

Simulator

  1. Connecting...