diff --git a/discord/client.py b/discord/client.py index 1d2c2a326..50f76d5a2 100644 --- a/discord/client.py +++ b/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 diff --git a/discord/guild.py b/discord/guild.py index f56207f4a..2740dee01 100644 --- a/discord/guild.py +++ b/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() diff --git a/pyproject.toml b/pyproject.toml index d36c85c82..596e6ef08 100644 --- a/pyproject.toml +++ b/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'", ]