Add Client.intents to query the current intents

Closes #5854
This commit is contained in:
Rapptz
2020-09-26 06:23:24 -04:00
parent 3084deee18
commit 28e5b2a5e1
2 changed files with 14 additions and 0 deletions

View File

@ -231,6 +231,12 @@ class ConnectionState:
u = self.user
return u.id if u else None
@property
def intents(self):
ret = Intents.none()
ret.value = self._intents.value
return ret
@property
def voice_clients(self):
return list(self._voice_clients.values())