From a08f7a14fff66e0bc532fca15275ee8de0f542ac Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 29 Aug 2024 03:04:14 -0400 Subject: [PATCH 1/3] Add a warning if interaction endpoint URL is set on login --- discord/client.py | 5 +++++ 1 file changed, 5 insertions(+) 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 From 6d8198126a34b33b38a7a32391065f8dd5e2fab7 Mon Sep 17 00:00:00 2001 From: Michael H Date: Thu, 29 Aug 2024 03:05:35 -0400 Subject: [PATCH 2/3] Remove aiodns from being used on Windows --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'", ] From d3e63a0162a7a0db3b6d822e596c4745af875c2c Mon Sep 17 00:00:00 2001 From: owocado <24418520+owocado@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:38:00 +0530 Subject: [PATCH 3/3] Fix Guild.invites_paused method --- discord/guild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/guild.py b/discord/guild.py index 07a072d1f..9bdcda129 100644 --- a/discord/guild.py +++ b/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()