From ee9d28790d2956aeba998ccd53f4079d3fd56cd9 Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Mon, 7 Oct 2019 11:05:49 -0700 Subject: Only allow members currently in the guild to be warned --- bot/cogs/moderation/infractions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/cogs/moderation/infractions.py b/bot/cogs/moderation/infractions.py index e7327c5e9..34c439ffe 100644 --- a/bot/cogs/moderation/infractions.py +++ b/bot/cogs/moderation/infractions.py @@ -91,7 +91,7 @@ class Infractions(Scheduler, commands.Cog): # region: Permanent infractions @command() - async def warn(self, ctx: Context, user: MemberConverter, *, reason: str = None) -> None: + async def warn(self, ctx: Context, user: Member, *, reason: str = None) -> None: """Warn a user for the given reason.""" infraction = await utils.post_infraction(ctx, user, "warning", reason, active=False) if infraction is None: -- cgit v1.2.3