aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-10-07 11:05:49 -0700
committerGravatar MarkKoz <[email protected]>2019-10-07 11:05:49 -0700
commitee9d28790d2956aeba998ccd53f4079d3fd56cd9 (patch)
treee703f419c6fcb1d2afcebc73b7a76d83fcda5fb4
parentUpdate the nickname policy URL (diff)
Only allow members currently in the guild to be warned
-rw-r--r--bot/cogs/moderation/infractions.py2
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: