Description

Fired when the subscribers only mode is removed on a channel.

Example

// ... Initializing

pubsub
    .on('subscribersoff', (data) => {
        console.log(data);
    });

Data

{
    channel_id: '41677043',
    type: 'subscribersoff',
    moderator: {
        id: '41677043',
        name: 'equinoxbug_'
    },
    duration: null,
    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} - Will always be null.

created_at - {Number} - Timestamp of the creation of the action.


results matching ""

    No results matching ""