From 1382c639a984fef354da055c12ad2a1683ee88ec Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Tue, 26 May 2020 00:24:35 +0300 Subject: [PATCH] Fix error when attempting to unsuspend outside a thread channel --- src/modules/suspend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/suspend.js b/src/modules/suspend.js index 7edd096..b44b323 100644 --- a/src/modules/suspend.js +++ b/src/modules/suspend.js @@ -61,7 +61,7 @@ module.exports = ({ bot, knex, config, commands }) => { thread = await threads.findSuspendedThreadByChannelId(msg.channel.id); if (! thread) { - thread.postSystemMessage(`Not in a thread`); + msg.channel.createMessage(`Not in a thread`); return; }