Add support for ApplicationFlags
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user