cardboardbox/events/guildDelete.js
2019-11-26 16:22:24 -05:00

9 lines
267 B
JavaScript

// This event executes when a new guild (server) is left.
module.exports = (client, guild) => {
client.logger.cmd(`[GUILD LEAVE] ${guild.name} (${guild.id}) removed the bot.`);
if (client.settings.has(guild.id)) {
client.settings.delete(guild.id);
}
};