GuildIntegrationsUpdate.js (562B)
1 'use strict'; 2 3 const Action = require('./Action'); 4 const { Events } = require('../../util/Constants'); 5 6 class GuildIntegrationsUpdate extends Action { 7 handle(data) { 8 const client = this.client; 9 const guild = client.guilds.cache.get(data.guild_id); 10 /** 11 * Emitted whenever a guild integration is updated 12 * @event Client#guildIntegrationsUpdate 13 * @param {Guild} guild The guild whose integrations were updated 14 */ 15 if (guild) client.emit(Events.GUILD_INTEGRATIONS_UPDATE, guild); 16 } 17 } 18 19 module.exports = GuildIntegrationsUpdate;