Maintained typings of payloads that Discord sends
Project description
discord-typings
Maintained typings of all payloads that Discord sends as TypedDict
s.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file discord-typings-0.5.1.tar.gz
.
File metadata
- Download URL: discord-typings-0.5.1.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a4fb1e00201416ae94ca64ca5935d447c005e0475b1ec274c1a6e09072db70e |
|
MD5 | 02d62649b8a16f9f5b52562358118e9f |
|
BLAKE2b-256 | d25af96373658a0e99be6af8cf7bfd483f6e96c3f0a0cd370731e3aa8ea96287 |
Provenance
File details
Details for the file discord_typings-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: discord_typings-0.5.1-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55ebdb6d6f0f47df774a0c31193ba6a45de14625fab9c6fbd43bfe87bb8c0128 |
|
MD5 | 3a305c0e773eb3beeac941dbfb449845 |
|
BLAKE2b-256 | 23be64ea131c58226214c7442d2eeb91cfb14fa21cb710c66b3358e73e403696 |