aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-09-26 06:23:24 -0400
committerRapptz <[email protected]>2020-09-26 06:35:41 -0400
commit28e5b2a5e133970aff7d0f4db1d973c7516e429a (patch)
tree19c6a64fdef16b0e8f3635f80f887136b763c53a /discord/client.py
parentFixed incorrectly named 'Intent' class in doc. (diff)
downloaddiscord.py-28e5b2a5e133970aff7d0f4db1d973c7516e429a.tar.xz
discord.py-28e5b2a5e133970aff7d0f4db1d973c7516e429a.zip
Add Client.intents to query the current intents
Closes #5854
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py
index fb255719..1ddb09d6 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -749,6 +749,14 @@ class Client:
else:
raise TypeError('allowed_mentions must be AllowedMentions not {0.__class__!r}'.format(value))
+ @property
+ def intents(self):
+ """:class:`Intents`: The intents configured for this connection.
+
+ .. versionadded:: 1.5
+ """
+ return self._connection.intents
+
# helpers/getters
@property