Skip to content

Commit ecc0003

Browse files
authored
Merge branch 'development' into master
2 parents ee8c5ba + 02250e8 commit ecc0003

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
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/modmail-dev/modmail/issues/319). If you're a plugin developer, note the "BREAKING" section.
88

9+
# [UNRELEASED]
10+
11+
### Fixed
12+
- `?alias make/create` as aliases to `?alias add`. This improves continuity between the bot and its command structure. ([PR #3195](https://github.com/kyb3r/modmail/pull/3195))
13+
- 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))
14+
- Reply not being forwarded from DM. (PR [#3239](https://github.com/modmail-dev/modmail/pull/3239))
915

1016
# [UNRELEASED]
1117

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ async def process_dm_modmail(self, message: discord.Message) -> None:
888888
return
889889
sent_emoji, blocked_emoji = await self.retrieve_emoji()
890890

891-
if message.type != discord.MessageType.default:
891+
if message.type not in [discord.MessageType.default, discord.MessageType.reply]:
892892
return
893893

894894
thread = await self.threads.find(recipient=message.author)

cogs/modmail.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ async def close(
483483
484484
Silently close a thread (no message)
485485
- `{prefix}close silently`
486-
- `{prefix}close in 10m silently`
486+
- `{prefix}close silently in 10m`
487487
488488
Stop a thread from closing:
489489
- `{prefix}close cancel`
@@ -1665,13 +1665,7 @@ async def blocked(self, ctx):
16651665
self.bot.blocked_users.pop(str(id_))
16661666
logger.debug("No longer blocked, user %s.", id_)
16671667
continue
1668-
1669-
try:
1670-
user = await self.bot.get_or_fetch_user(int(id_))
1671-
except discord.NotFound:
1672-
users.append((id_, reason))
1673-
else:
1674-
users.append((user.mention, reason))
1668+
users.append((f"<@{id_}>", reason))
16751669

16761670
blocked_roles = list(self.bot.blocked_roles.items())
16771671
for id_, reason in blocked_roles:

cogs/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ async def make_alias(self, name, value, action):
11151115
await self.bot.config.update()
11161116
return embed
11171117

1118-
@alias.command(name="add")
1118+
@alias.command(name="add", aliases=["create", "make"])
11191119
@checks.has_permissions(PermissionLevel.MODERATOR)
11201120
async def alias_add(self, ctx, name: str.lower, *, value):
11211121
"""

0 commit comments

Comments
 (0)