Skip to content

Commit 0d09d17

Browse files
committed
Added thread_auto_open_silently with default 'false' to restore old functionality if desired
1 parent 99f5175 commit 0d09d17

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
This project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html);
77
however, insignificant breaking changes do not guarantee a major version bump, see the reasoning [here](https://github.com/kyb3r/modmail/issues/319). If you're a plugin developer, note the "BREAKING" section.
88

9+
# v3.7.8
10+
11+
### Added
12+
13+
- Added `thread_auto_open_silently` to allow opening threads silently by default
14+
915
# v3.7.7
1016

1117
### Added

cogs/modmail.py

Lines changed: 1 addition & 1 deletion
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:
992+
if not silent and not self.bot.config.get("thread_auto_open_silently"):
993993
if ctx.author.id == user.id:
994994
description = "You have opened a Modmail thread."
995995
else:

core/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class ConfigManager:
4949
"close_emoji": "🔒",
5050
"recipient_thread_close": False,
5151
"thread_auto_close_silently": False,
52+
"thread_auto_open_silently": False,
5253
"thread_auto_close": isodate.Duration(),
5354
"thread_auto_close_response": "This thread has been closed automatically due to inactivity after {timeout}.",
5455
"thread_creation_response": "The staff team will get back to you as soon as possible.",

0 commit comments

Comments
 (0)