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 => {
|
client.on('messageCreate', message => {
|
||||||
|
console.log(typeof(message));
|
||||||
if (typeof(message) === undefined) {
|
if (typeof(message) === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -151,6 +152,7 @@ client.on('messageCreate', message => {
|
|||||||
|
|
||||||
client.on('messageUpdate', (undefined, newMessage) => {
|
client.on('messageUpdate', (undefined, newMessage) => {
|
||||||
//checkMessage(newMessage, false);
|
//checkMessage(newMessage, false);
|
||||||
|
console.log(typeof(message));
|
||||||
if (typeof(message) === undefined) {
|
if (typeof(message) === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user