Skip to content

Commit 20e7ae3

Browse files
committed
fix: Allow ?logs [user] command to be used outside of Modmail threads
When the logs command is used with a user argument, the current version of Modmail requires the command to be run in a Modmail thread. This behavior change appears to have been introduced with commit 9d4b8e3 as previous versions allowed the command to be used outside of Modmail threads. The other logs commands (closed-by, delete, key, responded, search) do not require the command to be run in a thread. The ?logs [user] command should behave the same way as it did before.
1 parent 46efff7 commit 20e7ae3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ 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+
# v4.2.1
10+
11+
### Fixed
12+
- `?logs [user]` can be used outside of a Modmail thread again.
13+
914
# v4.2.0
1015

1116
Upgraded discord.py to version 2.6.3, added support for CV2.

cogs/modmail.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,6 @@ async def anonremoveuser(self, ctx, *users_arg: Union[discord.Member, discord.Ro
12001200

12011201
@commands.group(invoke_without_command=True)
12021202
@checks.has_permissions(PermissionLevel.SUPPORTER)
1203-
@checks.thread_only()
12041203
async def logs(self, ctx, *, user: User = None):
12051204
"""
12061205
Get previous Modmail thread logs of a member.

0 commit comments

Comments
 (0)