Skip to content

Commit 348f6ce

Browse files
committed
Changed thread_auto_open_silently to thread_creation_silent to be more consistent with the other names and added it to config_help.json
1 parent 0d09d17 commit 348f6ce

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
1010

1111
### Added
1212

13-
- Added `thread_auto_open_silently` to allow opening threads silently by default
13+
- Added `thread_creation_silent` to allow opening threads silently by default
1414

1515
# v3.7.7
1616

cogs/modmail.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ async def contact(
989989
if self.bot.config["dm_disabled"] in (DMDisabled.NEW_THREADS, DMDisabled.ALL_THREADS):
990990
logger.info("Contacting user %s when Modmail DM is disabled.", user)
991991

992-
if not silent and not self.bot.config.get("thread_auto_open_silently"):
992+
if not silent and not self.bot.config.get("thread_creation_silent"):
993993
if ctx.author.id == user.id:
994994
description = "You have opened a Modmail thread."
995995
else:

core/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ class ConfigManager:
4949
"close_emoji": "🔒",
5050
"recipient_thread_close": False,
5151
"thread_auto_close_silently": False,
52-
"thread_auto_open_silently": False,
5352
"thread_auto_close": isodate.Duration(),
5453
"thread_auto_close_response": "This thread has been closed automatically due to inactivity after {timeout}.",
5554
"thread_creation_response": "The staff team will get back to you as soon as possible.",
5655
"thread_creation_footer": "Your message has been sent",
56+
"thread_creation_silent": False,
5757
"thread_self_closable_creation_footer": "Click the lock to close the thread",
5858
"thread_creation_title": "Thread Created",
5959
"thread_close_footer": "Replying will create a new thread",

core/config_help.json

+11
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,17 @@
303303
"See also: `thread_creation_title`, `thread_creation_response`, `thread_self_closable_creation_footer`, `thread_close_footer`."
304304
]
305305
},
306+
"thread_creation_silent": {
307+
"default": "No",
308+
"description": "Setting this configuration will open a new thread silently by default.",
309+
"examples": [
310+
"`{prefix}config set thread_creation_silent yes`",
311+
"`{prefix}config set thread_creation_silent no`"
312+
],
313+
"notes": [
314+
"Works like `{prefix}contact <user> silent` for every new thread."
315+
]
316+
},
306317
"thread_self_closable_creation_footer": {
307318
"default": "\"Click the lock to close the thread\"",
308319
"description": "This is the message embed footer sent to the recipient upon the creation of a new thread.",

0 commit comments

Comments
 (0)