From a08f7a14fff66e0bc532fca15275ee8de0f542ac Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 29 Aug 2024 03:04:14 -0400 Subject: [PATCH] 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