fix bug causing a crash
This commit is contained in:
parent
16563d4dc4
commit
eb92685930
2
main.cjs
2
main.cjs
@ -132,6 +132,7 @@ function replyMessage(message, correctedMessage, abbrsUsed) {
|
||||
}
|
||||
|
||||
client.on('messageCreate', message => {
|
||||
console.log(typeof(message));
|
||||
if (typeof(message) === undefined) {
|
||||
return;
|
||||
}
|
||||
@ -151,6 +152,7 @@ client.on('messageCreate', message => {
|
||||
|
||||
client.on('messageUpdate', (undefined, newMessage) => {
|
||||
//checkMessage(newMessage, false);
|
||||
console.log(typeof(message));
|
||||
if (typeof(message) === undefined) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user