add event handling code
This commit is contained in:
parent
6ce9d8db46
commit
03d9b43c44
5
server/events/channelCreate.ts
Normal file
5
server/events/channelCreate.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
export const name = 'channelCreate'
|
||||||
|
export function execute(channel: any) {
|
||||||
|
console.log(`${JSON.stringify(channel)} has been Created.`)
|
||||||
|
}
|
9
server/events/guildScheduledEventCreate.ts
Normal file
9
server/events/guildScheduledEventCreate.ts
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
4
server/events/guildScheduledEventDelete.ts
Normal file
4
server/events/guildScheduledEventDelete.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export const name = 'guildScheduledEventDelete'
|
||||||
|
export function execute(guildScheduledEvent: any) {
|
||||||
|
console.log(`${JSON.stringify(guildScheduledEvent)} has been Deleted.`)
|
||||||
|
}
|
4
server/events/guildScheduledEventUpdate.ts
Normal file
4
server/events/guildScheduledEventUpdate.ts
Normal 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}`)
|
||||||
|
}
|
4
server/events/messageCreate.ts
Normal file
4
server/events/messageCreate.ts
Normal 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
4
server/events/ready.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export const name = 'ready'
|
||||||
|
export function execute(client: any) {
|
||||||
|
console.log(`${JSON.stringify(client)} has been created.`)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user