Add ready event
This commit is contained in:
parent
a5123d6f79
commit
9579ca837f
3 changed files with 7 additions and 1 deletions
|
@ -96,6 +96,7 @@ The following events are supported:
|
||||||
* message(message: Message)
|
* message(message: Message)
|
||||||
* messageDelete(message: Message | PartialMessage)
|
* messageDelete(message: Message | PartialMessage)
|
||||||
* messageUpdate(oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage)
|
* messageUpdate(oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage)
|
||||||
|
* ready()
|
||||||
|
|
||||||
All parameters are supplied from discord.js
|
All parameters are supplied from discord.js
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,7 @@ export class Util {
|
||||||
client.on('message', event.message);
|
client.on('message', event.message);
|
||||||
client.on('messageDelete', event.messageDelete);
|
client.on('messageDelete', event.messageDelete);
|
||||||
client.on('messageUpdate', event.messageUpdate);
|
client.on('messageUpdate', event.messageUpdate);
|
||||||
|
client.on('ready', event.ready);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,4 +48,8 @@ export class Event {
|
||||||
public messageUpdate(oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage) {
|
public messageUpdate(oldMessage: Message | PartialMessage, newMessage: Message | PartialMessage) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ready() {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
Reference in a new issue