Description
Fired when an user is unbanned from a channel.
Example
// ... Initializing
pubsub
.on('unban', (data) => {
console.log(data);
});
Data
{
channel_id: '41677043',
type: 'unban',
moderator: {
id: '41677043',
name: 'equinoxbug_'
},
target: {
id: '136187141',
name: 'iFonny'
},
reason: undefined,
duration: 'permanent',
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 unbanned.
target.id
- {String} - The id of the user.
target.name
- {String} - The name of the user.
reason
- {String} - The reason of the timeout. Will always be null
. (no reasons on unban)
duration
- {Number} - The duration of the timeout. Will always be 'permanent'
.
created_at
- {Number} - Timestamp of the creation of the action.