threadOnMention -> createThreadOnMention
parent
e0aa3a73ae
commit
78a1cc34be
|
@ -272,7 +272,7 @@ The bot's "Playing" text
|
||||||
**Default:** `on`
|
**Default:** `on`
|
||||||
If enabled, channel permissions for the thread are synchronized with the category when using `!move`. Requires `allowMove` to be enabled.
|
If enabled, channel permissions for the thread are synchronized with the category when using `!move`. Requires `allowMove` to be enabled.
|
||||||
|
|
||||||
#### threadOnMention
|
#### createThreadOnMention
|
||||||
**Default:** `off`
|
**Default:** `off`
|
||||||
If enabled, the bot will automatically create a new thread for a user who pings it.
|
If enabled, the bot will automatically create a new thread for a user who pings it.
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,7 @@
|
||||||
"default": "\uD83D\uDCE8"
|
"default": "\uD83D\uDCE8"
|
||||||
},
|
},
|
||||||
|
|
||||||
"threadOnMention": {
|
"createThreadOnMention": {
|
||||||
"$ref": "#/definitions/customBoolean",
|
"$ref": "#/definitions/customBoolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
|
|
|
@ -235,7 +235,7 @@ function initBaseMessageHandlers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If configured, automatically open a new thread with a user who has pinged it
|
// 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);
|
const existingThread = await threads.findOpenThreadByUserId(msg.author.id);
|
||||||
if (! existingThread) {
|
if (! existingThread) {
|
||||||
// Only open a thread if we don't already have one
|
// Only open a thread if we don't already have one
|
||||||
|
|
Loading…
Reference in New Issue