mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
* Cleanup Part 2: Electric Boogaloo (Reloaded) * Moar cleanup * Tweak NOT_A_PERMISSION error
13 lines
407 B
JavaScript
13 lines
407 B
JavaScript
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;
|