diff options
| author | Nadir Chowdhury <[email protected]> | 2021-04-19 01:32:52 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-18 20:32:52 -0400 |
| commit | 631a0b1e13f9fd71941f402a7ba7bfdee6d66f96 (patch) | |
| tree | c16ab66dd4fe8e28eeec8b7166862fb473534414 /discord/client.py | |
| parent | Fix up _unique and valid_icon_size implementations (diff) | |
| download | discord.py-631a0b1e13f9fd71941f402a7ba7bfdee6d66f96.tar.xz discord.py-631a0b1e13f9fd71941f402a7ba7bfdee6d66f96.zip | |
Add support for ApplicationFlags
Diffstat (limited to 'discord/client.py')
| -rw-r--r-- | discord/client.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py index c3c15452..4585e8a7 100644 --- a/discord/client.py +++ b/discord/client.py @@ -41,6 +41,7 @@ from .enums import ChannelType from .mentions import AllowedMentions from .errors import * from .enums import Status, VoiceRegion +from .flags import ApplicationFlags from .gateway import * from .activity import BaseActivity, create_activity from .voice_client import VoiceClient @@ -290,6 +291,14 @@ class Client: """ return self._connection.application_id + @property + def application_flags(self) -> ApplicationFlags: + """:class:`ApplicationFlags`: The client's application flags. + + .. versionadded: 2.0 + """ + return self._connection.application_flags # type: ignore + def is_ready(self): """:class:`bool`: Specifies if the client's internal cache is ready for use.""" return self._ready.is_set() |