thaldrin/src/events/remove.guild.ts

16 lines
451 B
TypeScript
Raw Normal View History

2021-05-14 19:49:47 +00:00
import Logger from "../utils/logger"
import { Guild } from "discord.js"
2021-07-12 16:58:33 +00:00
// import Prom from "../utils/init.prometheus";
2021-05-14 19:49:47 +00:00
export = {
name: "guildDelete",
// @ts-ignore
run: async (client, guild: Guild) => {
2021-07-12 16:58:33 +00:00
// Prom.guildCount.dec()
// Prom.totalGuilds.set(client.guilds.cache.size)
2021-05-14 19:49:47 +00:00
Logger.info({
type: "event:guildDelete",
message: `Left Guild: ${guild.name} [${guild.id}]`
})
}
}