Skip to content

Commit d70fd49

Browse files
committed
Add thread_move_title config
1 parent 17e287c commit d70fd49

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

core/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class ConfigManager:
5757
"thread_close_title": "Thread Closed",
5858
"thread_close_response": "{closer.mention} has closed this Modmail thread.",
5959
"thread_self_close_response": "You have closed this Modmail thread.",
60+
"thread_move_title": "Thread Moved",
6061
"thread_move_notify": False,
6162
"thread_move_response": "This thread has been moved.",
6263
"disabled_new_thread_title": "Not Delivered",

core/config_help.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,16 @@
350350
"See also: `thread_close_title`, `thread_close_footer`, `thread_close_response`."
351351
]
352352
},
353+
"thread_move_title": {
354+
"default": "Thread Moved",
355+
"description": "The title of the message embed when a thread is moved.",
356+
"examples": [
357+
"`{prefix}config set thread_move_title Thread transferred to another channel!"
358+
],
359+
"notes": [
360+
"See also: `thread_move_notify`, `thread_move_response`."
361+
]
362+
},
353363
"thread_move_notify": {
354364
"default": "No",
355365
"description": "Notify the recipient if the thread was moved.",
@@ -358,7 +368,7 @@
358368
"`{prefix}config set thread_move_notify no`"
359369
],
360370
"notes": [
361-
"See also: `thread_move_response`."
371+
"See also: `thread_move_title`, `thread_move_response`."
362372
]
363373
},
364374
"thread_move_response": {
@@ -369,7 +379,7 @@
369379
],
370380
"notes": [
371381
"Only has an effect when `thread_move_notify` is on.",
372-
"See also: `thread_move_notify`."
382+
"See also: `thread_move_title`, `thread_move_notify`."
373383
]
374384
},
375385
"disabled_new_thread_title": {

core/thread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ async def _close(
341341
sneak_peak = "No content"
342342

343343
if self.channel.nsfw:
344-
_nsfw = 'NSFW-'
344+
_nsfw = "NSFW-"
345345
else:
346-
_nsfw = ''
346+
_nsfw = ""
347347

348348
desc = f"[`{_nsfw}{log_data['key']}`]({log_url}): "
349349
desc += truncate(sneak_peak, max=75 - 13)

0 commit comments

Comments
 (0)