Skip to content

Commit 1654c26

Browse files
committed
rename: default_snooze_time -> snooze_default_duration
1 parent 07a0a77 commit 1654c26

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Commands:
2929
* `clearsnoozed`: Clears all snoozed items.
3030

3131
Configuration Options:
32-
* `default_snooze_time`: Sets the maximum duration for snooze.
32+
* `snooze_default_duration`: Sets the maximum duration for snooze.
3333
* `snooze_title`: Customizes the title for snooze notifications.
3434
* `snooze_text`: Customizes the text for snooze notifications.
3535
* `unsnooze_text`: Customizes the text for unsnooze notifications.

cogs/modmail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,7 @@ async def snooze(self, ctx, *, duration: UserFriendlyTime = None):
23742374
- delete (default): deletes the channel and restores it later
23752375
- move: moves the channel to the configured snoozed category
23762376
Optionally specify a duration, e.g. 'snooze 2d' for 2 days.
2377-
Uses config: default_snooze_time, snooze_title, snooze_text
2377+
Uses config: snooze_default_duration, snooze_title, snooze_text
23782378
"""
23792379
thread = ctx.thread
23802380
if thread.snoozed:
@@ -2383,7 +2383,7 @@ async def snooze(self, ctx, *, duration: UserFriendlyTime = None):
23832383
return
23842384
from core.time import ShortTime
23852385

2386-
default_snooze = self.bot.config.get("default_snooze_time")
2386+
default_snooze = self.bot.config.get("snooze_default_duration")
23872387
if default_snooze is None:
23882388
default_snooze = 604800
23892389
else:

core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ConfigManager:
135135
"thread_min_characters_response": "Your message is too short to create a thread. Please provide more details.",
136136
"thread_min_characters_footer": "Minimum {min_characters} characters required.",
137137
# --- SNOOZE FEATURE CONFIG ---
138-
"default_snooze_time": 604800, # in seconds, default 7 days
138+
"snooze_default_duration": 604800, # in seconds, default 7 days
139139
"snooze_title": "Thread Snoozed",
140140
"snooze_text": "This thread has been snoozed. The channel will be restored when the user replies or a moderator unsnoozes it.",
141141
"unsnooze_text": "This thread has been unsnoozed and restored.",

core/config_help.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,12 +1266,12 @@
12661266
"See also: `thread_min_characters`, `thread_min_characters_title`, `thread_min_characters_response`."
12671267
]
12681268
},
1269-
"default_snooze_time": {
1269+
"snooze_default_duration": {
12701270
"default": "604800 (7 days in seconds)",
12711271
"description": "The default duration in seconds that a thread will be snoozed when no duration is specified. When a thread is snoozed, it is temporarily hidden until the user replies or a moderator unsnoozes it.",
12721272
"examples": [
1273-
"`{prefix}config set default_snooze_time 86400` (1 day)",
1274-
"`{prefix}config set default_snooze_time 1209600` (14 days)"
1273+
"`{prefix}config set snooze_default_duration 86400` (1 day)",
1274+
"`{prefix}config set snooze_default_duration 1209600` (14 days)"
12751275
],
12761276
"notes": [
12771277
"The value must be specified in seconds.",
@@ -1285,7 +1285,7 @@
12851285
"`{prefix}config set snooze_title Thread Paused`"
12861286
],
12871287
"notes": [
1288-
"See also: `snooze_text`, `unsnooze_title`, `default_snooze_time`."
1288+
"See also: `snooze_text`, `unsnooze_title`, `snooze_default_duration`."
12891289
]
12901290
},
12911291
"snooze_text": {
@@ -1296,7 +1296,7 @@
12961296
],
12971297
"notes": [
12981298
"Discord flavoured markdown is fully supported in `snooze_text`.",
1299-
"See also: `snooze_title`, `unsnooze_text`, `default_snooze_time`."
1299+
"See also: `snooze_title`, `unsnooze_text`, `snooze_default_duration`."
13001300
]
13011301
},
13021302
"unsnooze_text": {
@@ -1307,7 +1307,7 @@
13071307
],
13081308
"notes": [
13091309
"Discord flavoured markdown is fully supported in `unsnooze_text`.",
1310-
"See also: `snooze_text`, `unsnooze_notify_channel`, `default_snooze_time`."
1310+
"See also: `snooze_text`, `unsnooze_notify_channel`, `snooze_default_duration`."
13111311
]
13121312
},
13131313
"unsnooze_notify_channel": {
@@ -1320,7 +1320,7 @@
13201320
"notes": [
13211321
"If set to \"thread\", the notification will be sent in the thread channel itself.",
13221322
"If set to a channel ID, the notification will be sent to that specific channel.",
1323-
"See also: `unsnooze_text`, `default_snooze_time`."
1323+
"See also: `unsnooze_text`, `snooze_default_duration`."
13241324
]
13251325
},
13261326
"snooze_behavior": {

0 commit comments

Comments
 (0)