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