mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Add a warning if interaction endpoint URL is set on login
This commit is contained in:
1 parent
463b4bd570
commit
a08f7a14ff
1 file changed
+5
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user