From 82f418a2997448986fe6b3a5f22c84efebeb81d8 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 6 Nov 2020 00:34:37 +0200 Subject: [PATCH] Fix !newthread throwing an error if a hook cancels thread creation !newthread ignores beforeNewThread hooks entirely now. --- src/modules/newthread.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/newthread.js b/src/modules/newthread.js index 3b094f1..b9e57b9 100644 --- a/src/modules/newthread.js +++ b/src/modules/newthread.js @@ -23,6 +23,7 @@ module.exports = ({ bot, knex, config, commands }) => { const createdThread = await threads.createNewThreadForUser(user, { quiet: true, ignoreRequirements: true, + ignoreHooks: true, source: "command", });