12 lines
464 B
TypeScript
12 lines
464 B
TypeScript
import { GuildScheduledEvent } from 'discord.js'
|
|
import { validateRepetitionStringAndSendMessageOnFail } from '../handler/repeatingEvents/helper'
|
|
export const name = 'guildScheduledEventCreate'
|
|
export async function execute(guildScheduledEvent: GuildScheduledEvent) {
|
|
try {
|
|
console.log(`${JSON.stringify(guildScheduledEvent)} has been created.`)
|
|
validateRepetitionStringAndSendMessageOnFail(guildScheduledEvent)
|
|
} catch (error) {
|
|
console.error(error)
|
|
}
|
|
}
|