Add ready event

This commit is contained in:
Ethan Lane 2021-07-22 17:52:36 +01:00
parent a5123d6f79
commit 9579ca837f
3 changed files with 7 additions and 1 deletions

View file

@ -96,6 +96,7 @@ The following events are supported:
* message(message: Message)
* messageDelete(message: Message | PartialMessage)
* messageUpdate(oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage)
* ready()
All parameters are supplied from discord.js

View file

@ -103,6 +103,7 @@ export class Util {
client.on('message', event.message);
client.on('messageDelete', event.messageDelete);
client.on('messageUpdate', event.messageUpdate);
client.on('ready', event.ready);
}
}

View file

@ -48,4 +48,8 @@ export class Event {
public messageUpdate(oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage) {
}
public ready() {
}
}