diff options
| author | 2020-02-16 11:41:56 -0800 | |
|---|---|---|
| committer | 2020-02-16 11:41:56 -0800 | |
| commit | 6f25814aee1794fdabce6fef97d0d776121d5535 (patch) | |
| tree | 36c1d0d992dccfe6afaa474c67e6ec02a6407947 | |
| parent | Merge pull request #752 from python-discord/infr-edit-permanent-fix (diff) | |
Moderation: fix member not found error not being shown
| -rw-r--r-- | bot/cogs/moderation/infractions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/infractions.py b/bot/cogs/moderation/infractions.py index f4e296df9..9ea17b2b3 100644 --- a/bot/cogs/moderation/infractions.py +++ b/bot/cogs/moderation/infractions.py @@ -313,6 +313,6 @@ class Infractions(InfractionScheduler, commands.Cog): async def cog_command_error(self, ctx: Context, error: Exception) -> None: """Send a notification to the invoking context on a Union failure.""" if isinstance(error, commands.BadUnionArgument): - if discord.User in error.converters: + if discord.User in error.converters or discord.Member in error.converters: await ctx.send(str(error.errors[0])) error.handled = True |