From 9c0d91b0bf5f8bf68a3fbadbf9da66726c355b81 Mon Sep 17 00:00:00 2001 From: TizzySaurus <47674925+TizzySaurus@users.noreply.github.com> Date: Wed, 10 Nov 2021 21:36:40 +0000 Subject: 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. --- bot/exts/moderation/infraction/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: """ -- cgit v1.2.3