Await guild.fetch_member
This commit is contained in:
parent
e9f6021c63
commit
579f66aa4e
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ class KickCog(ModcaseCog):
|
||||||
if len(reason) > 100:
|
if len(reason) > 100:
|
||||||
await ctx.send("Reason must be < 100 characters", ephemeral=True)
|
await ctx.send("Reason must be < 100 characters", ephemeral=True)
|
||||||
return
|
return
|
||||||
if not ctx.guild.fetch_member(user.id):
|
if not await ctx.guild.fetch_member(user.id):
|
||||||
await ctx.send("User must be in guild", ephemeral=True)
|
await ctx.send("User must be in guild", ephemeral=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ class MuteCog(ModcaseCog):
|
||||||
if len(reason) > 100:
|
if len(reason) > 100:
|
||||||
await ctx.send("Reason must be < 100 characters", ephemeral=True)
|
await ctx.send("Reason must be < 100 characters", ephemeral=True)
|
||||||
return
|
return
|
||||||
if not ctx.guild.fetch_member(user.id):
|
if not await ctx.guild.fetch_member(user.id):
|
||||||
await ctx.send("User must be in guild", ephemeral=True)
|
await ctx.send("User must be in guild", ephemeral=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue