cardboardbox/events/guildDelete.js

10 lines
267 B
JavaScript
Raw Normal View History

// 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);
}
};