Add muted indicator
This commit is contained in:
parent
e297480104
commit
2539352c03
1 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,7 @@ import logging
|
|||
import re
|
||||
import secrets
|
||||
import string
|
||||
from datetime import timezone
|
||||
from datetime import datetime, timezone
|
||||
from io import BytesIO
|
||||
|
||||
import numpy as np
|
||||
|
@ -187,7 +187,9 @@ class UtilCog(Extension):
|
|||
if not await ctx.guild.fetch_member(user.id):
|
||||
await ctx.send("That user isn't in this guild.", ephemeral=True)
|
||||
return
|
||||
muted = user.communication_disabled_until is not None
|
||||
muted = False
|
||||
if user.communication_disabled_until:
|
||||
muted = user.communication_disabled_until > datetime.now(tz=timezone.utc)
|
||||
|
||||
user_roles = user.roles
|
||||
if user_roles:
|
||||
|
|
Loading…
Add table
Reference in a new issue