fix bug causing a crash

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2024-09-07 19:59:28 -05:00
parent b5c75190d6
commit 0e6b8ac8a4

View File

@ -132,6 +132,7 @@ function replyMessage(message, correctedMessage, abbrsUsed) {
}
client.on('messageCreate', message => {
console.log(typeof(undefined) === undefined);
console.log(typeof(message));
if (typeof(message) === undefined) {
return;