Skip to content

Commit 9078f03

Browse files
authored
[cleanup] markdown table formatting (#6374)
* fix table again * Update Message_Components.md
1 parent 47e3027 commit 9078f03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1019
-1019
lines changed

docs/Reference.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ Discord exposes different versions of our API[.](https://c.tenor.com/BuZl66Eegkg
1717

1818
###### API Versions
1919

20-
| Version | Status | Default |
21-
| ------- | -------------------------------- | ------- |
22-
| 10 | Available | |
23-
| 9 | Available | |
24-
| 8 | Deprecated | |
25-
| 7 | Deprecated | |
26-
| 6 | Deprecated ||
27-
| 5 | Discontinued | |
28-
| 4 | Discontinued | |
29-
| 3 | Discontinued | |
20+
| Version | Status | Default |
21+
|---------|--------------|---------|
22+
| 10 | Available | |
23+
| 9 | Available | |
24+
| 8 | Deprecated | |
25+
| 7 | Deprecated | |
26+
| 6 | Deprecated ||
27+
| 5 | Discontinued | |
28+
| 4 | Discontinued | |
29+
| 3 | Discontinued | |
3030

3131
## Error Messages
3232

@@ -138,7 +138,7 @@ Discord utilizes Twitter's [snowflake](https://github.com/twitter-archive/snowfl
138138
###### Snowflake ID Format Structure (Left to Right)
139139

140140
| Field | Bits | Number of bits | Description | Retrieval |
141-
| ------------------- | -------- | -------------- | ---------------------------------------------------------------------------- | ----------------------------------- |
141+
|---------------------|----------|----------------|------------------------------------------------------------------------------|-------------------------------------|
142142
| Timestamp | 63 to 22 | 42 bits | Milliseconds since Discord Epoch, the first second of 2015 or 1420070400000. | `(snowflake >> 22) + 1420070400000` |
143143
| Internal worker ID | 21 to 17 | 5 bits | | `(snowflake & 0x3E0000) >> 17` |
144144
| Internal process ID | 16 to 12 | 5 bits | | `(snowflake & 0x1F000) >> 12` |
@@ -203,7 +203,7 @@ Resource fields that are optional have names that are suffixed with a question m
203203
###### Example Nullable and Optional Fields
204204

205205
| Field | Type |
206-
| ---------------------------- | ------- |
206+
|------------------------------|---------|
207207
| optional_field? | string |
208208
| nullable_field | ?string |
209209
| optional_and_nullable_field? | ?string |
@@ -278,7 +278,7 @@ Timestamps are expressed in seconds and display the given timestamp in the user'
278278
###### Timestamp Styles
279279

280280
| Style | Example Output | Description |
281-
| ----- | ---------------------------- | --------------- |
281+
|-------|------------------------------|-----------------|
282282
| t | 16:20 | Short Time |
283283
| T | 16:20:30 | Long Time |
284284
| d | 20/04/2021 | Short Date |
@@ -312,7 +312,7 @@ Discord uses ids and hashes to render images in the client. These hashes can be
312312
###### Image Formats
313313

314314
| Name | Extension |
315-
| ------ | ----------- |
315+
|--------|-------------|
316316
| JPEG | .jpg, .jpeg |
317317
| PNG | .png |
318318
| WebP | .webp |
@@ -322,22 +322,22 @@ Discord uses ids and hashes to render images in the client. These hashes can be
322322
###### CDN Endpoints
323323

324324
| Type | Path | Supports |
325-
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
325+
|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------|
326326
| Custom Emoji | emojis/[emoji_id](#DOCS_RESOURCES_EMOJI/emoji-object).png | PNG, JPEG, WebP, GIF |
327327
| Guild Icon | icons/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_icon](#DOCS_RESOURCES_GUILD/guild-object).png \* | PNG, JPEG, WebP, GIF |
328328
| Guild Splash | splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP |
329329
| Guild Discovery Splash | discovery-splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_discovery_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP |
330330
| Guild Banner | banners/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_banner](#DOCS_RESOURCES_GUILD/guild-object).png \* | PNG, JPEG, WebP, GIF |
331331
| User Banner | banners/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_banner](#DOCS_RESOURCES_USER/user-object).png \* | PNG, JPEG, WebP, GIF |
332-
| Default User Avatar | embed/avatars/[index](#DOCS_RESOURCES_USER/user-object).png \*\* \*\*\* | PNG |
332+
| Default User Avatar | embed/avatars/[index](#DOCS_RESOURCES_USER/user-object).png \*\* \*\*\* | PNG |
333333
| User Avatar | avatars/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_avatar](#DOCS_RESOURCES_USER/user-object).png \* | PNG, JPEG, WebP, GIF |
334334
| Guild Member Avatar | guilds/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/users/[user_id](#DOCS_RESOURCES_USER/user-object)/avatars/[member_avatar](#DOCS_RESOURCES_GUILD/guild-member-object).png \* | PNG, JPEG, WebP, GIF |
335335
| User Avatar Decoration | avatar-decorations/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_avatar_decoration](#DOCS_RESOURCES_USER/user-object).png | PNG |
336336
| Application Icon | app-icons/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/[icon](#DOCS_RESOURCES_APPLICATION/application-object).png | PNG, JPEG, WebP |
337337
| Application Cover | app-icons/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/[cover_image](#DOCS_RESOURCES_APPLICATION/application-object).png | PNG, JPEG, WebP |
338338
| Application Asset | app-assets/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/[asset_id](#DOCS_TOPICS_GATEWAY_EVENTS/activity-object-activity-assets).png | PNG, JPEG, WebP |
339339
| Achievement Icon | app-assets/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/achievements/[achievement_id](#DOCS_GAME_SDK_ACHIEVEMENTS/data-models-user-achievement-struct)/icons/[icon_hash](#DOCS_GAME_SDK_ACHIEVEMENTS/data-models-user-achievement-struct).png | PNG, JPEG, WebP |
340-
| Store Page Asset | app-assets/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/store/asset_id | PNG, JPEG, WebP |
340+
| Store Page Asset | app-assets/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/store/asset_id | PNG, JPEG, WebP |
341341
| Sticker Pack Banner | app-assets/710982414301790216/store/[sticker_pack_banner_asset_id](#DOCS_RESOURCES_STICKER/sticker-pack-object).png | PNG, JPEG, WebP |
342342
| Team Icon | team-icons/[team_id](#DOCS_TOPICS_TEAMS/data-models-team-object)/[team_icon](#DOCS_TOPICS_TEAMS/data-models-team-object).png | PNG, JPEG, WebP |
343343
| Sticker | stickers/[sticker_id](#DOCS_RESOURCES_STICKER/sticker-object).png \*\*\* \*\*\*\* | PNG, Lottie, GIF |
@@ -465,7 +465,7 @@ For example:
465465
## Locales
466466

467467
| Locale | Language Name | Native Name |
468-
| ------ | --------------------- | ------------------- |
468+
|--------|-----------------------|---------------------|
469469
| id | Indonesian | Bahasa Indonesia |
470470
| da | Danish | Dansk |
471471
| de | German | Deutsch |
@@ -491,9 +491,9 @@ For example:
491491
| bg | Bulgarian | български |
492492
| ru | Russian | Pусский |
493493
| uk | Ukrainian | Українська |
494-
| hi | Hindi | हिन्दी |
494+
| hi | Hindi | हिन्दी |
495495
| th | Thai | ไทย |
496496
| zh-CN | Chinese, China | 中文 |
497497
| ja | Japanese | 日本語 |
498498
| zh-TW | Chinese, Taiwan | 繁體中文 |
499-
| ko | Korean | 한국어 |
499+
| ko | Korean | 한국어 |

docs/dispatch/Error_Codes.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
66
This page outlines some of the common errors codes that may be encountered when using Dispatch.
77

8-
| Code | Name | Possible Solution |
9-
| ---- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
10-
| 2020 | Request Signing Failed | Check user entitlement |
11-
| 2022 | Disk Space Low | Free up disk space |
12-
| 2023 | Disk Permission Denied | Choose a new location, or change write permissions on desired location |
13-
| 2024 | Uninstall Failed | Attempt to manually remove game files from disk |
14-
| 2025 | Install Script Failed | Restart Discord, attempt to uninstall/reinstall the game, ensure script is correct |
15-
| 2029 | Build Not Found | Completely close and re-open Discord |
16-
| 2051 | Panic! | Escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) |
17-
| 2058 | Too Many API Retries | Escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) |
18-
| 2059 | Failed to set Registry Key | User most likely denied Windows administrator permissions prompt. Try again, and accept the prompt |
19-
| 2064 | Failed to Patch File | Attempted to patch the game while running: ensure the game process is entirely ended, try restarting Discord, try disabling antivirus |
20-
| 2065 | No Manifests | Ensure that your manifests are properly selected in the Developer Portal for your SKU |
21-
| 2069 | API Error | Intermittent API issues. Wait, escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) |
22-
| 2070 | Bad Response | Intermittent API issues. Wait, escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) |
23-
| 2073 | Not Entitled | Check that your manifests are properly configured in the Developer Portal. Have the user install the game from the Library, not the store page |
24-
| 2076 | Two Clients Patching | User has multiple Discords open trying to patch the same game; only use one |
25-
| 9001 | Unknown | Catch-all error code. Escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) with repro steps/as much info as possible |
8+
| Code | Name | Possible Solution |
9+
|------|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
10+
| 2020 | Request Signing Failed | Check user entitlement |
11+
| 2022 | Disk Space Low | Free up disk space |
12+
| 2023 | Disk Permission Denied | Choose a new location, or change write permissions on desired location |
13+
| 2024 | Uninstall Failed | Attempt to manually remove game files from disk |
14+
| 2025 | Install Script Failed | Restart Discord, attempt to uninstall/reinstall the game, ensure script is correct |
15+
| 2029 | Build Not Found | Completely close and re-open Discord |
16+
| 2051 | Panic! | Escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) |
17+
| 2058 | Too Many API Retries | Escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) |
18+
| 2059 | Failed to set Registry Key | User most likely denied Windows administrator permissions prompt. Try again, and accept the prompt |
19+
| 2064 | Failed to Patch File | Attempted to patch the game while running: ensure the game process is entirely ended, try restarting Discord, try disabling antivirus |
20+
| 2065 | No Manifests | Ensure that your manifests are properly selected in the Developer Portal for your SKU |
21+
| 2069 | API Error | Intermittent API issues. Wait, escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) |
22+
| 2070 | Bad Response | Intermittent API issues. Wait, escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) |
23+
| 2073 | Not Entitled | Check that your manifests are properly configured in the Developer Portal. Have the user install the game from the Library, not the store page |
24+
| 2076 | Two Clients Patching | User has multiple Discords open trying to patch the same game; only use one |
25+
| 9001 | Unknown | Catch-all error code. Escalate in the #dispatch channel of the [Discord Developers Server](https://discord.gg/discord-developers) with repro steps/as much info as possible |
2626

0 commit comments

Comments
 (0)