guildCreate event

This commit is contained in:
Lio Young 2021-05-13 22:33:25 +02:00
parent acca2f2dad
commit 8c24c6ad23
No known key found for this signature in database
GPG Key ID: 789795A11879E169
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import Logger from "../utils/logger"
import config from "../../config"
import { Guild } from "discord.js"
export = {
name: "guildCreate",
// @ts-ignore
run: async (client, guild: Guild) => {
console.log(guild)
Logger.info({
type: "event:guildCreate",
message: `New Guild: ${guild.name} [${guild.id}]`
})
}
}