Description
Fired when the slow mode is set on a channel.
Example
// ... Initializing
pubsub
.on('slow', (data) => {
console.log(data);
});
Data
{
channel_id: '41677043',
type: 'slow',
moderator: {
id: '41677043',
name: 'equinoxbug_'
},
duration: 5,
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.
duration - {Number} - The duration between each message for non-subs.
created_at - {Number} - Timestamp of the creation of the action.