fix bug causing a crash

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2024-09-07 19:54:41 -05:00
parent 16563d4dc4
commit eb92685930

View File

@ -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;
}