Added guild.unban

This commit is contained in:
Amish Shah
2016-08-27 22:31:14 +01:00
parent 2c056b6418
commit 22062f1f86
6 changed files with 55 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
const Action = require('./Action');
const Constants = require('../../util/Constants');
class GuildBanRemove extends Action {
handle(data) {
const client = this.client;
const guild = client.guilds.get(data.guild_id);
const user = client.dataManager.newUser(data.user);
if (guild && user) {
client.emit(Constants.Events.GUILD_BAN_REMOVE, guild, user);
}
}
}
module.exports = GuildBanRemove;