mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-21 10:26:47 +00:00
Typehint state.py
This commit is contained in:
parent
166152647c
commit
7592300535
409
discord/state.py
409
discord/state.py
File diff suppressed because it is too large
Load Diff
@ -61,6 +61,7 @@ class _PartialAppInfoOptional(TypedDict, total=False):
|
|||||||
terms_of_service_url: str
|
terms_of_service_url: str
|
||||||
privacy_policy_url: str
|
privacy_policy_url: str
|
||||||
max_participants: int
|
max_participants: int
|
||||||
|
flags: int
|
||||||
|
|
||||||
class PartialAppInfo(_PartialAppInfoOptional, BaseAppInfo):
|
class PartialAppInfo(_PartialAppInfoOptional, BaseAppInfo):
|
||||||
pass
|
pass
|
||||||
|
@ -24,14 +24,14 @@ DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
from typing import Optional, TypedDict, List, Literal
|
from typing import Optional, TypedDict, List, Literal
|
||||||
from .snowflake import Snowflake
|
from .snowflake import Snowflake
|
||||||
from .member import Member
|
from .member import GatewayMember
|
||||||
|
|
||||||
|
|
||||||
SupportedModes = Literal['xsalsa20_poly1305_lite', 'xsalsa20_poly1305_suffix', 'xsalsa20_poly1305']
|
SupportedModes = Literal['xsalsa20_poly1305_lite', 'xsalsa20_poly1305_suffix', 'xsalsa20_poly1305']
|
||||||
|
|
||||||
|
|
||||||
class _PartialVoiceStateOptional(TypedDict, total=False):
|
class _PartialVoiceStateOptional(TypedDict, total=False):
|
||||||
member: Member
|
member: GatewayMember
|
||||||
self_stream: bool
|
self_stream: bool
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user