Skip to content

Commit cc21725

Browse files
CordilaTaaku18
Cordila
andauthored
Fix typo #3210 (#3233)
* Fix typo * Rephrase the silently close messsage * Update changelog --------- Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
1 parent a784f82 commit cc21725

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
1313
- Loading the blocked list with the `?blocked` command takes a long time when the list is large. ([PR #3242](https://github.com/kyb3r/modmail/pull/3242))
1414
- Reply not being forwarded from DM. (PR [#3239](https://github.com/modmail-dev/modmail/pull/3239))
1515
- Cleanup imports after removing/unloading a plugin. ([PR #3226](https://github.com/modmail-dev/Modmail/pull/3226))
16+
- Fixed a syntactic error in the close message when a thread is closed after a certain duration. ([PR #3233](https://github.com/modmail-dev/Modmail/pull/3233))
1617

1718
### Added
1819
- `?log key <key>` to retrieve the log link and view a preview using a log key. ([PR #3196](https://github.com/modmail-dev/Modmail/pull/3196))

cogs/modmail.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,9 @@ async def move(self, ctx, *, arguments):
444444
async def send_scheduled_close_message(self, ctx, after, silent=False):
445445
human_delta = human_timedelta(after.dt)
446446

447-
silent = "*silently* " if silent else ""
448-
449447
embed = discord.Embed(
450448
title="Scheduled close",
451-
description=f"This thread will close {silent}{human_delta}.",
449+
description=f"This thread will{' silently' if silent else ''} close in {human_delta}.",
452450
color=self.bot.error_color,
453451
)
454452

0 commit comments

Comments
 (0)