Browse Source

Fix Guild.invites_paused method

pull/9934/head
owocado 7 months ago
committed by GitHub
parent
commit
d3e63a0162
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      discord/guild.py

4
discord/guild.py

@ -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…
Cancel
Save