0.2.2 • Published 3 years ago
typed-discord-api v0.2.2
Typed Discord API
Installing
Latest and stable version:
npm install --save-dev typed-discord-apiStarting
Importing basic types and using
import { UserPayload } from 'typed-discord-api';const { UserPayload } = require('typed-discord-api');How we document
- All types suffixed with
Payloadare payloads sent by Discord- For example:
UserPayloadorGuildPayload
- For example:
- No miscellaneous types, only types related to the Discord API
- Some types are not suffixed with
Payload(as mentioned above), you can find them in theglobalsfile - All types prefixed with
Gatewayare data that only comes directly related to the Gateway - All types prefixed with
RESTare data that comes from a Discord API request