mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 06:31:20 +00:00
* Cleanup Part 2: Electric Boogaloo (Reloaded) * Moar cleanup * Tweak NOT_A_PERMISSION error
20 lines
527 B
JavaScript
20 lines
527 B
JavaScript
// ##untested handler##
|
|
|
|
const AbstractHandler = require('./AbstractHandler');
|
|
|
|
class GuildBanRemoveHandler extends AbstractHandler {
|
|
handle(packet) {
|
|
const client = this.packetManager.client;
|
|
const data = packet.d;
|
|
client.actions.GuildBanRemove.handle(data);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Emitted whenever a member is unbanned from a guild.
|
|
* @event Client#guildBanRemove
|
|
* @param {Guild} guild The guild that the unban occurred in
|
|
* @param {User} user The user that was unbanned
|
|
*/
|
|
|
|
module.exports = GuildBanRemoveHandler;
|