From 78a1cc34befa13e51f06df1a085182f8bb60005e Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 16 Aug 2020 18:36:51 +0300 Subject: [PATCH] threadOnMention -> createThreadOnMention --- docs/configuration.md | 2 +- src/data/cfg.schema.json | 2 +- src/main.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 8c77988..a770a61 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -272,7 +272,7 @@ The bot's "Playing" text **Default:** `on` If enabled, channel permissions for the thread are synchronized with the category when using `!move`. Requires `allowMove` to be enabled. -#### threadOnMention +#### createThreadOnMention **Default:** `off` If enabled, the bot will automatically create a new thread for a user who pings it. diff --git a/src/data/cfg.schema.json b/src/data/cfg.schema.json index 8955f84..519802d 100644 --- a/src/data/cfg.schema.json +++ b/src/data/cfg.schema.json @@ -254,7 +254,7 @@ "default": "\uD83D\uDCE8" }, - "threadOnMention": { + "createThreadOnMention": { "$ref": "#/definitions/customBoolean", "default": false }, diff --git a/src/main.js b/src/main.js index 7d65fa6..1928886 100644 --- a/src/main.js +++ b/src/main.js @@ -235,7 +235,7 @@ function initBaseMessageHandlers() { } // If configured, automatically open a new thread with a user who has pinged it - if (config.threadOnMention) { + if (config.createThreadOnMention) { const existingThread = await threads.findOpenThreadByUserId(msg.author.id); if (! existingThread) { // Only open a thread if we don't already have one