Skip to content

Commit 9b30374

Browse files
fix many more
1 parent fff535c commit 9b30374

17 files changed

+21
-24
lines changed

docs/change-log/2022-07-01-add-subcommand-groups-and-subcommands-to-message-interaction-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ date: "2022-07-01"
44
breaking: true
55
---
66

7-
While this is a breaking change, most apps only rely on interaction responses (`INTERACTION_CREATE`), *not* message interaction objects (`MESSAGE_CREATE`). [Interaction responses](/docs/interactions/receiving-and-responding#message-interaction-object/interaction-object-interaction-data) are unaffected by this change.
7+
While this is a breaking change, most apps only rely on interaction responses (`INTERACTION_CREATE`), *not* message interaction objects (`MESSAGE_CREATE`). [Interaction responses](/docs/interactions/receiving-and-responding#interaction-object-interaction-data) are unaffected by this change.
88

99
#### Upcoming Changes
1010

docs/developer-tools/game-sdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ For more detailed information and documentation around the Rich Presence feature
647647
| Custom | 4 |
648648
| Competing | 5 |
649649

650-
For more details about the activity types, [see Gateway documentation](/docs/events/gateway-events#/activity-object-activity-types).
650+
For more details about the activity types, [see Gateway documentation](/docs/events/gateway-events#activity-object-activity-types).
651651

652652
`ActivityType` is strictly for the purpose of handling events that you receive from Discord; though the SDK will not reject a payload with an `ActivityType` sent, it will be discarded and will not change anything in the client.
653653

docs/discord-social-sdk/design-guidelines/connection-points.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If the game has account management, then this connection point is **required**,
1414

1515
Discord's sign-in button is presented as the **primary option** to log-in for the player amongst the list of **external identity-providers** due to providing deeper user-benefits than a standard OAuth login.
1616

17-
Please use the [**Blurple Button**](/docs/discord-social-sdk/design-guidelines/branding-guidelines/buttons) button styling for the sign-in connection point.
17+
Please use the [**Blurple Button**](/docs/discord-social-sdk/design-guidelines/branding-guidelines#buttons) button styling for the sign-in connection point.
1818

1919
![Signing In](images/social-sdk/design-guidelines/ConnectionPoints-03.png)
2020

docs/discord-social-sdk/design-guidelines/signing-in.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sidebar_label: Signing In
1111
1212
## Overall flow
1313

14-
Sign-in or log-in flows all begin with the interaction of a [**Discord-styled button**](/docs/discord-social-sdk/design-guidelines_BRANDING_GUIDELINES/buttons).
14+
Sign-in or log-in flows all begin with the interaction of a [**Discord-styled button**](/docs/discord-social-sdk/design-guidelines/branding-guidelines#buttons).
1515

1616
The Discord Social SDK will support the user-journeys for those who already **have a Discord account** and those who **do not**. We will similarly support those who have Discord installed as well as those who do not (via browser).
1717

docs/discord-social-sdk/development-guides.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ If you are new to the Discord Social SDK, we recommend you start with the [Getti
7272
## Developer Best Practices
7373

7474
<Container>
75-
<Card title="Debugging & Logging" link="/docs/discord-social-sdk/development-guides_DEBUGGING_LOGGING" icon="BugIcon">
75+
<Card title="Debugging & Logging" link="/docs/discord-social-sdk/development-guides/debugging-logging" icon="BugIcon">
7676
Use logging and debugging tools to troubleshoot issues.
7777
</Card>
7878
<Card title="Using with Discord APIs" link="/docs/discord-social-sdk/development-guides/using-with-discord-apis" icon="ClydeIcon">

docs/discord-social-sdk/development-guides/account-linking-on-consoles.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ If you plan to handle console authorization manually, you can follow these steps
9292
9393
We'll be following the same OAuth2 device authorization flow as the automatic method, but you'll need to manually handle the polling and token exchange.
9494
95-
1. [Request a device code from Discord](/docs/discord-social-sdk/development-guides/account-linking-on-consoles/step-1-request-a-device-code-from-discord)
96-
2. [Display the user verification information](/docs/discord-social-sdk/development-guides/account-linking-on-consoles/step-2-display-authorize-screen-with-qr-code-and-user-code) or open the authorization screen (optional)
97-
3. [Poll for the user's authorization](/docs/discord-social-sdk/development-guides/account-linking-on-consoles/step-3-poll-for-users-authorization)
98-
4. [Exchange the device code for an access token](/docs/discord-social-sdk/development-guides/account-linking-on-consoles/step-4-exchange-device-code-for-access-token)
99-
5. [Handle the token response](/docs/discord-social-sdk/development-guides/account-linking-on-consoles/step-5-handle-token-response) and close authorization screen (optional)
95+
1. [Request a device code from Discord](/docs/discord-social-sdk/development-guides/account-linking-on-consoles#step-1-request-a-device-code-from-discord)
96+
2. [Display the user verification information](/docs/discord-social-sdk/development-guides/account-linking-on-consoles#step-2-display-authorize-screen-with-qr-code-and-user-code) or open the authorization screen (optional)
97+
3. [Poll for the user's authorization](/docs/discord-social-sdk/development-guides/account-linking-on-consoles#step-3-poll-for-users-authorization)
98+
4. [Exchange the device code for an access token](/docs/discord-social-sdk/development-guides/account-linking-on-consoles#step-4-exchange-device-code-for-access-token)
99+
5. [Handle the token response](/docs/discord-social-sdk/development-guides/account-linking-on-consoles#step-5-handle-token-response) and close authorization screen (optional)
100100
101101
### Step 1: Request a Device Code from Discord
102102

docs/discord-social-sdk/development-guides/linked-channels.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ struct GuildChannel {
116116
117117
### Saving a channel link selection
118118
119-
Once the user has chosen a channel to link to, you can call [`Client::LinkChannelToLobby`] to set or change the channel a lobby is linked to. You can also use [`Client::UnlinkChannelFromLobby`] to remove the link. The conditions specified in [Linked Channel Requirements](/docs/discord-social-sdk/development-guides/linked-channels/channel-requirements) must be met for the given lobby, channel, and user.
119+
Once the user has chosen a channel to link to, you can call [`Client::LinkChannelToLobby`] to set or change the channel a lobby is linked to. You can also use [`Client::UnlinkChannelFromLobby`] to remove the link. The conditions specified in [Linked Channel Requirements](/docs/discord-social-sdk/development-guides/linked-channels#channel-requirements) must be met for the given lobby, channel, and user.
120120
121121
### Try It Out
122122

docs/events/gateway.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The Gateway API lets apps open secure WebSocket connections with Discord to rece
99
> info
1010
> In *most* cases, performing REST operations on Discord resources can be done using the [HTTP API](/docs/reference#http-api) rather than the Gateway API.
1111
12-
The Gateway is Discord's form of real-time communication used by clients (including apps), so there are nuances and data passed that simply isn't relevant to apps. Interacting with the Gateway can be tricky, but there are [community-built libraries](/docs/developer-tools/community-resources/libraries) with built-in support that simplify the most complicated bits and pieces. If you're planning on writing a custom implementation, be sure to read the following documentation in its entirety so you understand the sacred secrets of the Gateway (or at least those that matter for apps).
12+
The Gateway is Discord's form of real-time communication used by clients (including apps), so there are nuances and data passed that simply isn't relevant to apps. Interacting with the Gateway can be tricky, but there are [community-built libraries](/docs/developer-tools/community-resources#libraries) with built-in support that simplify the most complicated bits and pieces. If you're planning on writing a custom implementation, be sure to read the following documentation in its entirety so you understand the sacred secrets of the Gateway (or at least those that matter for apps).
1313

1414
## Gateway Events
1515

@@ -441,7 +441,7 @@ In addition to the gateway restrictions described here, Discord's REST API is al
441441

442442
#### Enabling Privileged Intents
443443

444-
Before using privileged intents, you must enable them in your app's settings. In the [Developer Portal](#APPLICATIONS), you can navigate to your app's settings then toggle the privileged intents on the **Bots** page under the "Privileged Gateway Intents" section. You should only toggle privileged intents that your bot *requires to function*.
444+
Before using privileged intents, you must enable them in your app's settings. In the [Developer Portal](https://discord.com/developers/applications), you can navigate to your app's settings then toggle the privileged intents on the **Bots** page under the "Privileged Gateway Intents" section. You should only toggle privileged intents that your bot *requires to function*.
445445

446446
If your app qualifies for [verification](https://support-dev.discord.com/hc/en-us/articles/23926564536471-How-Do-I-Get-My-App-Verified), you must first [verify your app](https://support-dev.discord.com/hc/en-us/articles/23926564536471-How-Do-I-Get-My-App-Verified) and request access to these intents during the verification process. If your app is already verified and you need to request additional privileged intents, you can [contact support](https://dis.gd/support).
447447

docs/events/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Read details about each way to receive events in the sections below.
1919

2020
Gateway events are the primary way apps can listen and send events. Most events related to resources in Discord, like updates to channels, guilds, roles, and messages, are only available over [Gateway](/docs/events/gateway).
2121

22-
Gateway events are sent over a WebSocket-based [Gateway connection](/docs/events/gateway#connections) between Discord and your app. To receive Gateway events, your app must open and maintain a persistent Gateway connection which you can read details about in the [Gateway documentation](/docs/events/gateway#connections). To make receiving Gateway events simpler, we suggest using a [developer library](/docs/developer-tools/community-resources/libraries) which helps setup, maintain, and handle common pitfalls with Gateway connections (like [rate limits](/docs/events/gateway#rate-limiting)).
22+
Gateway events are sent over a WebSocket-based [Gateway connection](/docs/events/gateway#connections) between Discord and your app. To receive Gateway events, your app must open and maintain a persistent Gateway connection which you can read details about in the [Gateway documentation](/docs/events/gateway#connections). To make receiving Gateway events simpler, we suggest using a [developer library](/docs/developer-tools/community-resources#libraries) which helps setup, maintain, and handle common pitfalls with Gateway connections (like [rate limits](/docs/events/gateway#rate-limiting)).
2323

2424
Details about receiving events using the Gateway API is in the [Gateway documentation](/docs/events/gateway#receiving-events), and the full list of available Gateway events is in the [Gateway Events documentation](/docs/events/gateway-events).
2525

docs/interactions/application-commands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Application commands are native ways to interact with apps in the Discord client
2727
| dm_permission? | boolean | **Deprecated (use `contexts` instead)**; Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. | all |
2828
| default_permission? | ?boolean | Not recommended for use as field will soon be deprecated. Indicates whether the command is enabled by default when the app is added to a guild, defaults to `true` | all |
2929
| nsfw? | boolean | Indicates whether the command is [age-restricted](/docs/interactions/application-commands#agerestricted-commands), defaults to `false` | all |
30-
| integration_types? | list of [integration types](/docs/resources/application#application-object-application-integration-types) | [Installation contexts](/docs/resources/application#installation-context) where the command is available, only for globally-scoped commands. Defaults to your app's [configured contexts](/docs/resources/application#installation-context/setting-supported-installation-contexts) | all |
30+
| integration_types? | list of [integration types](/docs/resources/application#application-object-application-integration-types) | [Installation contexts](/docs/resources/application#installation-context) where the command is available, only for globally-scoped commands. Defaults to your app's [configured contexts](/docs/resources/application#setting-supported-installation-contexts) | all |
3131
| contexts? | ?list of [interaction context types](/docs/interactions/receiving-and-responding#interaction-object-interaction-context-types) | [Interaction context(s)](/docs/interactions/receiving-and-responding#interaction-object-interaction-context-types) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands. | all |
3232
| version | snowflake | Autoincrementing version identifier updated during substantial record changes | all |
3333
| handler? | one of [command handler types](/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types) | Determines whether the interaction is handled by the app's interactions handler or by Discord | PRIMARY_ENTRY_POINT |

0 commit comments

Comments
 (0)