mirror of
https://github.com/thaldrin/thaldrin.git
synced 2024-08-14 23:57:21 +00:00
guildCreate event
This commit is contained in:
parent
acca2f2dad
commit
8c24c6ad23
1 changed files with 16 additions and 0 deletions
16
src/events/create.guild.ts
Normal file
16
src/events/create.guild.ts
Normal 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}]`
|
||||
})
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue