fix: Update userinfo command to use correct attribute for member timeout status
This commit is contained in:
parent
d4b263d4c9
commit
3ae3237921
@ -141,8 +141,8 @@ class UserInfoCog(commands.Cog):
|
||||
|
||||
# Timeout Status
|
||||
timeout_str = "Not timed out"
|
||||
if member.communication_disabled_until:
|
||||
until_time = member.communication_disabled_until # this is tz-aware
|
||||
if member.timed_out_until:
|
||||
until_time = member.timed_out_until # this is tz-aware
|
||||
time_left = until_time - now_utc
|
||||
if time_left > timedelta(0):
|
||||
hours, remainder = divmod(int(time_left.total_seconds()), 3600)
|
||||
|
Loading…
x
Reference in New Issue
Block a user