mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Fix Guild.invites_paused method
This commit is contained in:
1 parent
6d8198126a
commit
d3e63a0162
1 file changed
+2
-2
+2
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user