{"repo":"discordjs/discord-api-types","free":true,"listed":false,"github":"https://github.com/discordjs/discord-api-types","clone":"git clone https://github.com/discordjs/discord-api-types.git","description":"Up to date Discord API Typings, versioned by the API version","language":"TypeScript","stars":619,"topics":["discord-api","gateway","rest","typings","typescript","discord-bot","discordjs","discord","hacktoberfest","deno"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Discord API Types Simple type definitions for the Discord API. Installation Install with npm / yarn / pnpm: Usage You can only import this module by specifying the API version you want to target. Append /v to the import path, where the represents the API version. Below are some examples You may also import just certain parts of the module that you need. The possible values are: globals , gateway , gateway/v , payloads , payloads/v , rest , rest/v , rpc , rpc/v , utils , utils/v , voice , and voice/v . Below are some examples Note: The v exports ( discord-api-types/v ) include the appropriate version of gateway , payloads , rest , rpc , and utils you specified, alongside the globals exports Deno We also provide typings compatible with the deno runtime. You have 3 ways you can import them: 1. Directly from GitHub 2. From deno.land/x 3. From skypack.dev Project Structure The exports of each API version is split into three main parts: - Everything exported with the API prefix represents a payload you may get from the REST API or the Gateway. - Everything exported with the Gateway prefix represents data that ONLY comes from or is directly related to the Gateway. - Everything exported with the REST prefix represents data that ONLY comes from or is directly related to the REST API. - For endpoint options, they will follow the following structure: REST where the type represents what it will return. - For example, RESTPostAPIChannelMessageJSONBody or RESTGetAPIGatewayBotInfoResult . -","default_branch":null,"files":null,"tree":[],"storefront":"/r/discordjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/discordjs/discord-api-types/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}