Browse Source

Merge branch 'master' of https://github.com/Rapptz/discord.py into recurrent_events

pull/9685/head
Developer Anonymous 8 months ago
parent
commit
694590ea18
  1. 5
      discord/client.py
  2. 4
      discord/guild.py
  3. 2
      pyproject.toml

5
discord/client.py

@ -636,6 +636,11 @@ class Client:
if self._connection.application_id is None:
self._connection.application_id = self._application.id
if self._application.interactions_endpoint_url is not None:
_log.warning(
'Application has an interaction endpoint URL set, this means registered components and app commands will not be received by the library.'
)
if not self._connection.application_flags:
self._connection.application_flags = self._application.flags

4
discord/guild.py

@ -4477,7 +4477,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()
@ -4487,7 +4487,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()

2
pyproject.toml

@ -53,7 +53,7 @@ docs = [
]
speed = [
"orjson>=3.5.4",
"aiodns>=1.1",
"aiodns>=1.1; sys_platform != 'win32'",
"Brotli",
"cchardet==2.1.7; python_version < '3.10'",
]

Loading…
Cancel
Save