Fix addidental error when a thread was not returned but no errors were thrown
parent
d8c29e6e0b
commit
ccb6f7345b
|
@ -3,6 +3,7 @@
|
|||
## Sep 20, 2017
|
||||
* Fixed crash when the bot was unable to find or create a modmail thread
|
||||
* Reduced error log spam in case of network errors from Eris
|
||||
* Fix unintended error when a message was ignored due to an "accidental thread" word
|
||||
|
||||
## Sep 19, 2017
|
||||
* Added `logChannelId` option
|
||||
|
|
|
@ -95,12 +95,8 @@ Here's what their message contained:
|
|||
}
|
||||
|
||||
if (! thread) {
|
||||
utils.postError(`
|
||||
Modmail thread for ${msg.author.username}#${msg.author.discriminator} (${msg.author.id}) was not found.
|
||||
|
||||
Here's what their message contained:
|
||||
\`\`\`${msg.cleanContent}\`\`\`
|
||||
`);
|
||||
// If there's no thread returned, this message was probably ignored (e.g. due to a common word)
|
||||
// TODO: Move that logic here instead?
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue