mirror of https://github.com/thaldrin/thaldrin.git
guildCreate event
This commit is contained in:
parent
acca2f2dad
commit
8c24c6ad23
|
@ -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}]`
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue