Check if user in guild on unmute, closes #149

This commit is contained in:
Zeva Rose 2022-08-28 19:14:27 -06:00
parent 579f66aa4e
commit 5cf4d98ebb

View file

@ -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(