Added new formatter
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
import { GuildMember, userMention } from "discord.js"
|
||||
import { userMention } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
import { IEvent } from "~/interfaces"
|
||||
import { dateTimeFormatter } from "~/utils/Functions/intlFormaters"
|
||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
event: "guildMemberAdd",
|
||||
execute(member: GuildMember) {
|
||||
execute(member) {
|
||||
if (process.env.NODE_ENV === "dev") return
|
||||
logToChannel("bot", {
|
||||
embeds: [{
|
||||
title: "New Member",
|
||||
description: userMention(member.id) + " has joined the server.\n" +
|
||||
"Account created: " + member.user.createdAt.toLocaleString(),
|
||||
"Account created: " + dateTimeFormatter.format(member.user.createdAt),
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: member.user.avatarURL() || ""
|
||||
|
||||
Reference in New Issue
Block a user