Description

Fired when an user is unmodded on a channel.

Example

// ... Initializing

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

Data

{
    channel_id: '41677043',
    type: 'unmod',
    moderator: {
        id: '41677043',
        name: 'equinoxbug_'
    },
    target: {
        id: '136187141',
        name: 'iFonny'
    },
    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 no longer a moderator.

target.id - {String} - The id of the user.

target.name - {String} - The name of the user.

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


results matching ""

    No results matching ""