diff options
author | 2021-11-10 21:36:40 +0000 | |
---|---|---|
committer | 2021-11-10 21:36:40 +0000 | |
commit | 9c0d91b0bf5f8bf68a3fbadbf9da66726c355b81 (patch) | |
tree | afe47dae1004326d59d3cfc2646ebb7e9ad20c85 | |
parent | Merge pull request #1926 from python-discord/infractions-by-command (diff) |
Merge PR #1947: Fix `!infractions by me`
Put the literal converter before the Member converter so that "me"/"m" isn't attempted to be converted to a Member.
-rw-r--r-- | bot/exts/moderation/infraction/management.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/management.py b/bot/exts/moderation/infraction/management.py index 109b89a95..a833eb227 100644 --- a/bot/exts/moderation/infraction/management.py +++ b/bot/exts/moderation/infraction/management.py @@ -272,7 +272,7 @@ class ModManagement(commands.Cog): async def search_by_actor( self, ctx: Context, - actor: t.Union[discord.Member, t.Literal["m", "me"]], + actor: t.Union[t.Literal["m", "me"], UnambiguousUser], oldest_first: bool = False ) -> None: """ |