Add Client.intents to query the current intents

Closes #5854
This commit is contained in:
Rapptz committed 2020-09-26 06:35:41 -04:00
1 parent 3084deee18
commit 28e5b2a5e1
2 files changed
+14

No files matched your search

+8
View File
@@ -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