Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 5m5s
13 lines
445 B
TypeScript
13 lines
445 B
TypeScript
import { Events, Guild } from "discord.js"
|
|
import dbGuildInit from "@/utils/dbGuildInit"
|
|
import { logConsole } from "@/utils/console"
|
|
|
|
export const name = Events.GuildCreate
|
|
export async function execute(guild: Guild) {
|
|
logConsole('discordjs', 'guild_create', { name: guild.name, count: guild.memberCount.toString() })
|
|
|
|
const guildProfile = await dbGuildInit(guild)
|
|
|
|
logConsole('mongoose', 'guild_create', { name: guildProfile.guildName })
|
|
}
|