Check if user in guild on unmute, closes #149
This commit is contained in:
parent
579f66aa4e
commit
5cf4d98ebb
1 changed files with 4 additions and 0 deletions
|
@ -207,6 +207,10 @@ class MuteCog(ModcaseCog):
|
|||
await ctx.send("User is not muted", ephemeral=True)
|
||||
return
|
||||
|
||||
if not await ctx.guild.fetch_member(user.id):
|
||||
await ctx.send("User must be in guild", ephemeral=True)
|
||||
return
|
||||
|
||||
await user.timeout(communication_disabled_until=datetime.now(tz=timezone.utc))
|
||||
|
||||
embed = build_embed(
|
||||
|
|
Loading…
Add table
Reference in a new issue