mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 08:17:47 +00:00
Fix Guild.invites_paused method
This commit is contained in:
parent
6d8198126a
commit
d3e63a0162
@ -4463,7 +4463,7 @@ class Guild(Hashable):
|
||||
.. versionadded:: 2.4
|
||||
"""
|
||||
if not self.invites_paused_until:
|
||||
return False
|
||||
return 'INVITES_DISABLED' in self.features
|
||||
|
||||
return self.invites_paused_until > utils.utcnow()
|
||||
|
||||
@ -4473,7 +4473,7 @@ class Guild(Hashable):
|
||||
.. versionadded:: 2.4
|
||||
"""
|
||||
if not self.dms_paused_until:
|
||||
return 'INVITES_DISABLED' in self.features
|
||||
return False
|
||||
|
||||
return self.dms_paused_until > utils.utcnow()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user