fix bug causing a crash
This commit is contained in:
parent
4881d6a0e4
commit
16563d4dc4
4
main.cjs
4
main.cjs
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user