add event handling code

This commit is contained in:
mightypanders 2022-03-05 01:24:05 +01:00
parent 6ce9d8db46
commit 03d9b43c44
6 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,5 @@
export const name = 'channelCreate'
export function execute(channel: any) {
console.log(`${JSON.stringify(channel)} has been Created.`)
}

View File

@ -0,0 +1,9 @@
import { GuildScheduledEvent } from 'discord.js'
export const name = 'guildScheduledEventCreate'
export function execute(guildScheduledEvent: GuildScheduledEvent) {
try{
console.log(`${JSON.stringify(guildScheduledEvent)} has been created.`)
}catch(error) {
console.error(error)
}
}

View File

@ -0,0 +1,4 @@
export const name = 'guildScheduledEventDelete'
export function execute(guildScheduledEvent: any) {
console.log(`${JSON.stringify(guildScheduledEvent)} has been Deleted.`)
}

View File

@ -0,0 +1,4 @@
export const name = 'guildScheduledEventUpdate'
export function execute(oldguildScheduledEvent: any,newguildScheduledEvent: any) {
console.log(`${JSON.stringify(oldguildScheduledEvent)} has been Updated to be ${newguildScheduledEvent}`)
}

View File

@ -0,0 +1,4 @@
export const name = 'messageCreate'
export function execute(message: any) {
console.log(`${JSON.stringify(message)} has been created`)
}

4
server/events/ready.ts Normal file
View File

@ -0,0 +1,4 @@
export const name = 'ready'
export function execute(client: any) {
console.log(`${JSON.stringify(client)} has been created.`)
}