{"size": 402, "ext": "js", "max_stars_repo_path": "src/events/GuildDelete.js", "max_stars_repo_name": "SneakyHub/sneakygamesjsbot", "max_stars_repo_stars_event_min_datetime": "2022-01-10T20:02:36.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-05T02:21:28.000Z", "max_issues_repo_path": "src/events/GuildDelete.js", "max_issues_repo_name": "SneakyHub/sneakygamesjsbot", "max_issues_repo_issues_event_min_datetime": "2022-01-13T21:09:17.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-13T21:09:17.000Z", "max_forks_repo_path": "src/events/GuildDelete.js", "max_forks_repo_name": "SneakyHub/sneakygamesjsbot", "max_forks_repo_forks_event_min_datetime": "2022-01-10T19:37:11.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-26T07:09:07.000Z"}
{"max_stars_count": 7, "max_issues_count": 1, "max_forks_count": 12, "avg_line_length": 23.6470588235, "max_line_length": 82, "alphanum_fraction": 0.6492537313}
const { Guild } = require('discord.js');
const SGClient = require('../structures/SGClient');

module.exports.info = {
    name: "guildDelete",
    enabled: true
}
// This file is triggered only when new members join a server where the bot is in.
/**
 * 
 * @param {SGClient} Bot 
 * @param {Guild} invite
 * @returns 
 */
module.exports.run = async (Bot, guild) => {
    Bot.invites.delete(guild.id);
}