Skip to content

Commit 177bc30

Browse files
committed
Add config help for snooze configs
Signed-off-by: Taku <[email protected]>
1 parent 32d9f15 commit 177bc30

File tree

3 files changed

+61
-5
lines changed

3 files changed

+61
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@ however, insignificant breaking changes do not guarantee a major version bump, s
99
# v4.2.0
1010

1111
Upgraded discord.py to version 2.6.3, added support for CV2.
12-
Forwarded messages now properly show in threads, rather then showing as an empty embed.
12+
Forwarded messages now properly show in threads, rather than showing as an empty embed.
1313

1414
### Fixed
15-
- Make Modmail keep working when typing is disabled due to a outage caused by Discord.
15+
- Make Modmail keep working when typing is disabled due to an outage caused by Discord.
1616
- Resolved an issue where forwarded messages appeared as empty embeds.
1717
- Fixed internal message handling and restoration processes.
18-
- Corrected a bug in the unsnooze functionality.
1918
- Eliminated duplicate logs and notes.
2019
- Addressed inconsistent use of `logkey` after ticket restoration.
2120
- Fixed issues with identifying the user who sent internal messages.
22-
- Solved an ancient bug where closing with words like `evening` wouldnt work.
21+
- Solved an ancient bug where closing with words like `evening` wouldn't work.
2322
- Fixed the command from being included in the reply in rare conditions.
2423

2524
### Added

core/config_help.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,5 +1265,62 @@
12651265
"You can use `{min_characters}` as a placeholder for the minimum required characters.",
12661266
"See also: `thread_min_characters`, `thread_min_characters_title`, `thread_min_characters_response`."
12671267
]
1268+
},
1269+
"max_snooze_time": {
1270+
"default": "604800 (7 days in seconds)",
1271+
"description": "The maximum duration in seconds that a thread can be snoozed. When a thread is snoozed, it is temporarily hidden until the user replies or a moderator unsnoozes it.",
1272+
"examples": [
1273+
"`{prefix}config set max_snooze_time 86400` (1 day)",
1274+
"`{prefix}config set max_snooze_time 1209600` (14 days)"
1275+
],
1276+
"notes": [
1277+
"The value must be specified in seconds.",
1278+
"See also: `snooze_title`, `snooze_text`, `unsnooze_text`, `unsnooze_notify_channel`."
1279+
]
1280+
},
1281+
"snooze_title": {
1282+
"default": "\"Thread Snoozed\"",
1283+
"description": "This is the message embed title sent when a thread is snoozed.",
1284+
"examples": [
1285+
"`{prefix}config set snooze_title Thread Paused`"
1286+
],
1287+
"notes": [
1288+
"See also: `snooze_text`, `unsnooze_title`, `max_snooze_time`."
1289+
]
1290+
},
1291+
"snooze_text": {
1292+
"default": "\"This thread has been snoozed. The channel will be restored when the user replies or a moderator unsnoozes it.\"",
1293+
"description": "This is the message embed content sent when a thread is snoozed.",
1294+
"examples": [
1295+
"`{prefix}config set snooze_text This conversation is on hold temporarily.`"
1296+
],
1297+
"notes": [
1298+
"Discord flavoured markdown is fully supported in `snooze_text`.",
1299+
"See also: `snooze_title`, `unsnooze_text`, `max_snooze_time`."
1300+
]
1301+
},
1302+
"unsnooze_text": {
1303+
"default": "\"This thread has been unsnoozed and restored.\"",
1304+
"description": "This is the message content sent when a thread is unsnoozed and restored.",
1305+
"examples": [
1306+
"`{prefix}config set unsnooze_text Thread has been reactivated.`"
1307+
],
1308+
"notes": [
1309+
"Discord flavoured markdown is fully supported in `unsnooze_text`.",
1310+
"See also: `snooze_text`, `unsnooze_notify_channel`, `max_snooze_time`."
1311+
]
1312+
},
1313+
"unsnooze_notify_channel": {
1314+
"default": "\"thread\"",
1315+
"description": "This is the channel where the unsnooze notification will be sent. Set to \"thread\" to send in the thread's own channel, or provide a specific channel ID.",
1316+
"examples": [
1317+
"`{prefix}config set unsnooze_notify_channel thread`",
1318+
"`{prefix}config set unsnooze_notify_channel 9234932582312` (9234932582312 is the channel ID)"
1319+
],
1320+
"notes": [
1321+
"If set to \"thread\", the notification will be sent in the thread channel itself.",
1322+
"If set to a channel ID, the notification will be sent to that specific channel.",
1323+
"See also: `unsnooze_text`, `max_snooze_time`."
1324+
]
12681325
}
12691326
}

core/paginator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def last_page(self):
149149
"""Returns the index of the last page"""
150150
return len(self.pages) - 1
151151

152-
async def run(self) -> typing.Optional[Message]:
152+
async def run(self) -> None:
153153
"""
154154
Starts the pagination session.
155155
"""

0 commit comments

Comments
 (0)