Description
Fired when an user is untimed out from a channel.
Example
// ... Initializing
pubsub
.on('untimeout', (data) => {
console.log(data);
});
Data
{
channel_id: '41677043',
type: 'untimeout',
moderator: {
id: '41677043',
name: 'equinoxbug_'
},
target: {
id: '136187141',
name: 'iFonny'
},
reason: 'this is a test untimeout',
duration: 40,
created_at: new Date().getTime()
}
channel_id
- {String} - The id of the channel where the event happened.
type
- {String} - The action that happened.
moderator
- {Object} - The moderator that did the action.
moderator.id
- {String} - The id of the moderator that did the action.
moderator.name
- {String} - The username of the moderator that did the action.
target
- {Object} - The user that is now timed out.
target.id
- {String} - The id of the user.
target.name
- {String} - The name of the user.
reason
- {String} - The reason of the untimeout. | Always null twitch doesn't provide reason on untimeout
duration
- {Number} - The duration of the untimeout. | Always 0, consider it as a 0sec timeout to override current timeout
created_at
- {Number} - Timestamp of the creation of the action.