Fix error when attempting to unsuspend outside a thread channel

master
Dragory 2020-05-26 00:24:35 +03:00
parent d1f939cbc8
commit 1382c639a9
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ module.exports = ({ bot, knex, config, commands }) => {
thread = await threads.findSuspendedThreadByChannelId(msg.channel.id); thread = await threads.findSuspendedThreadByChannelId(msg.channel.id);
if (! thread) { if (! thread) {
thread.postSystemMessage(`Not in a thread`); msg.channel.createMessage(`Not in a thread`);
return; return;
} }