mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-17 03:09:05 +00:00
parent
3084deee18
commit
28e5b2a5e1
@ -749,6 +749,14 @@ class Client:
|
|||||||
else:
|
else:
|
||||||
raise TypeError('allowed_mentions must be AllowedMentions not {0.__class__!r}'.format(value))
|
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
|
# helpers/getters
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -231,6 +231,12 @@ class ConnectionState:
|
|||||||
u = self.user
|
u = self.user
|
||||||
return u.id if u else None
|
return u.id if u else None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def intents(self):
|
||||||
|
ret = Intents.none()
|
||||||
|
ret.value = self._intents.value
|
||||||
|
return ret
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def voice_clients(self):
|
def voice_clients(self):
|
||||||
return list(self._voice_clients.values())
|
return list(self._voice_clients.values())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user