Fix !newthread throwing an error if a hook cancels thread creation

!newthread ignores beforeNewThread hooks entirely now.
cshd
Dragory 2020-11-06 00:34:37 +02:00
parent eea6a1c2b7
commit 82f418a299
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ module.exports = ({ bot, knex, config, commands }) => {
const createdThread = await threads.createNewThreadForUser(user, { const createdThread = await threads.createNewThreadForUser(user, {
quiet: true, quiet: true,
ignoreRequirements: true, ignoreRequirements: true,
ignoreHooks: true,
source: "command", source: "command",
}); });