Browse Source

Typehint state.py

pull/7440/head
Stocker 4 years ago
committed by GitHub
parent
commit
7592300535
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 411
      discord/state.py
  2. 1
      discord/types/appinfo.py
  3. 4
      discord/types/voice.py

411
discord/state.py

File diff suppressed because it is too large

1
discord/types/appinfo.py

@ -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

4
discord/types/voice.py

@ -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…
Cancel
Save