Skip to main content

Maintained typings of payloads that Discord sends

Project description

discord-typings

Maintained typings of all payloads that 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).

Exceptions

To differentiate between the data for complete application commands, and the data Discord expects to receive to create an application command, there is a special-cased ApplicationCommandPayload.

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.5.0.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

discord_typings-0.5.0-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for discord-typings-0.5.0.tar.gz
Algorithm Hash digest
SHA256 91432337545e1c4174cead78afe474faf4822b54c0ede12356d69ee3b6d3bbe9
MD5 012d84a075c1dd76d258fdb481cf9fc2
BLAKE2b-256 df01dd51992622cac1ae8b11ab39d8cea7161fb63514b06806caeb7aae186574

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for discord_typings-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3aa4d13a3b26f1f634422cf219cfa0b4ef1f9efd01c808af2a49e26e47dd8ffd
MD5 d4d4dd830a9c31dd3213bbb4954641e2
BLAKE2b-256 aa3c88eaacbf35abc187dabd81f657d7044de306ec74e5a75956c9d985fb5061

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