fix bug causing a crash

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2024-09-07 19:53:42 -05:00
parent 4881d6a0e4
commit 16563d4dc4

View File

@ -132,7 +132,7 @@ function replyMessage(message, correctedMessage, abbrsUsed) {
}
client.on('messageCreate', message => {
if (typeof message === undefined) {
if (typeof(message) === undefined) {
return;
}
if (message.author.id == "1091120267851485215") {
@ -151,7 +151,7 @@ client.on('messageCreate', message => {
client.on('messageUpdate', (undefined, newMessage) => {
//checkMessage(newMessage, false);
if (typeof message === undefined) {
if (typeof(message) === undefined) {
return;
}
if (message.author.id == "1091120267851485215") {