Skip to main content

Maintained typings of all objects Discord sends

Project description

discord-typings

Maintained typings of all objects Discord sends as TypedDicts.

Naming and usage

Right now there is no official documentation or API Reference - just start importing things and your editor will auto-complete options. This may change in the future though.

The naming used is the suffixes Data, Event and Command for the three types of payloads. Event refers to a gateway event received over the gateway, Command refers to a gateway command sent over the gateway and Data is used for any general top-level payloads like UserData.

The benefit of using Data as a suffix is that in your code you can use from discord_typings import UserData even if you define a User object (as is expected to be rather common).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord-typings-0.1.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

discord_typings-0.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file discord-typings-0.1.0.tar.gz.

File metadata

  • Download URL: discord-typings-0.1.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for discord-typings-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f363d427dc5158cf2b3db2b033d073ef7232616e7e6456ff36d54790387dcff8
MD5 6f14ac701e975d52333ab18d279ba28f
BLAKE2b-256 cc9afccf2002608e188499eb4ef4d681a993b3c1b45f796072a8e2878a521f25

See more details on using hashes here.

Provenance

File details

Details for the file discord_typings-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for discord_typings-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59e622d949ffaad84264cfbc6f94a74be68c170dcaa7fe6a17d7c810786279a9
MD5 0b90006bf5d4f4cfd72952db34eda30a
BLAKE2b-256 f4be1155c0810c8dc537ee460f3eec9137cd34945f6c40df6c0d80a16065fea0

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page