Maintained typings of all objects Discord sends
Project description
discord-typings
Maintained typings of all objects 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).
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
Hashes for discord_typings-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e622d949ffaad84264cfbc6f94a74be68c170dcaa7fe6a17d7c810786279a9 |
|
MD5 | 0b90006bf5d4f4cfd72952db34eda30a |
|
BLAKE2b-256 | f4be1155c0810c8dc537ee460f3eec9137cd34945f6c40df6c0d80a16065fea0 |