diff options
author | 2019-10-07 11:05:49 -0700 | |
---|---|---|
committer | 2019-10-07 11:05:49 -0700 | |
commit | ee9d28790d2956aeba998ccd53f4079d3fd56cd9 (patch) | |
tree | e703f419c6fcb1d2afcebc73b7a76d83fcda5fb4 | |
parent | Update the nickname policy URL (diff) |
Only allow members currently in the guild to be warned
-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 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: |