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

Uploaded Source

Built Distribution

discord_typings-0.2.2-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for discord-typings-0.2.2.tar.gz
Algorithm Hash digest
SHA256 fa16671ab03e19ec8ad9ada51f2b90b60ad15bb104d23caab964b4fa5bff998c
MD5 9d80f118750cce693e93b6abd3adec8d
BLAKE2b-256 83e53ae52ff989427eb78981d67301ec44ace52913038b5a713a4bcfc39b17d4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for discord_typings-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9d9e46db165a8759416b7d2d4595e67a2160b624a585237863f8ae1252b852da
MD5 4d862ad50b416f02628bbf4adb645738
BLAKE2b-256 00438a541151814c35d8c06c48f0e1db88541e4a4aff2fbc2caf0a7044f4255a

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