Skip to content

Conversation

@shaydewael
Copy link
Contributor

@shaydewael shaydewael commented Jul 26, 2024

Updates Getting Started guide with a few new things:

  • Support user-installed apps and add a few callouts related to it
  • Updates assets for new app settings changes
  • Removes Glitch and uses local development instead
  • Changes next steps to use cards
  • Add callouts for Activities getting started
  • Remove lingering preview labels

Also updates "Authorization Methods" -> "Installation Contexts" since that was updated in app's settings

@shaydewael shaydewael marked this pull request as ready for review July 26, 2024 16:22
@shaydewael shaydewael requested a review from a team as a code owner July 26, 2024 16:22
@shaydewael shaydewael requested review from colinloretz and removed request for a team July 26, 2024 16:22
> Your token is used to authorize API requests and carry your app's permissions, so they are *highly* sensitive. Make sure to never share your token or check it into any kind of version control.
Some intents are [privileged](#DOCS_TOPICS_GATEWAY/privileged-intents), meaning they allow your app to access data that may be considered sensitive (like the contents of messages). Privileged intents appear and can be toggled on the **Bot** page in your app's settings. Standard, non-privileged intents don't require any additional permissions or configurations.
Back in your project folder, rename the `.sample.env` file to `.env`. `.env` is where we'll store all of your app's credentials.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Back in your project folder, rename the `.sample.env` file to `.env`. `.env` is where we'll store all of your app's credentials.
Back in your project folder, rename the `.sample.env` file to `.env`. This is where we'll store all of your app's credentials.


See a list of all [OAuth2 scopes](#DOCS_TOPICS_OAUTH2/shared-resources-oauth2-scopes), or read more on [permissions](#DOCS_TOPICS_PERMISSIONS) in the documentation.
- Apps installed in a **[server context](#DOCS_RESOURCES_APPLICATION/server-context)** (server-installed apps) must be authorized by a server member with the `MANAGE_GUILD` permission, and are visible to all members of the server.
- Apps installed in a **[user context](#DOCS_RESOURCES_APPLICATION/user-context)** (user-installed apps) are visible only to the authorizing user, and therefore don't require any server-specific permissions. Apps installed to a user context are visible across all of the user's servers, DMs, and GDMs—however, they're limited to using commands.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "Group DMs" would be a little more self-explanatory here...

To make development a bit simpler, the app uses [discord-interactions](https://github.com/discord/discord-interactions-js), which provides types and helper functions. If you prefer to use other languages or libraries, check out the [Community Resources](#DOCS_TOPICS_COMMUNITY_RESOURCES) documentation.
On the **Installation** page in the **Default Install Settings** section:
- For **User Install**, add the `applications.commands` scope
- For **Guild Install**, add the `applications.commands` scope and `bot` scope. When you select `bot`, a new **Permissions** menu will appear to select the bot user's permissions. Select any permissions that you may want for your app—for now, I'll just select `Send Messages`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The guide alternates between "we" and "I" sometimes; sticking with either singular or plural would probably be a little more consistent (style-wise, not that it matters for the information conveyed)...

## Step 3: Handling interactivity

To enable your app to receive slash command requests (and other interactions), Discord needs a public URL to send them. This URL can be configured in your app's settings as **Interaction Endpoint URL**.
To enable your app to receive slash command and other interactions requests, Discord needs a public URL to send them. This URL can be configured in your app's settings as **Interaction Endpoint URL**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To enable your app to receive slash command and other interactions requests, Discord needs a public URL to send them. This URL can be configured in your app's settings as **Interaction Endpoint URL**.
To enable your app to receive slash command and other interactions' requests, Discord needs a public URL to send them. This URL can be configured in your app's settings as **Interaction Endpoint URL**.

shaydewael and others added 4 commits July 26, 2024 13:41
Co-authored-by: val.le <81811276+valdotle@users.noreply.github.com>
Co-authored-by: val.le <81811276+valdotle@users.noreply.github.com>
Co-authored-by: val.le <81811276+valdotle@users.noreply.github.com>
Co-authored-by: val.le <81811276+valdotle@users.noreply.github.com>
@shaydewael shaydewael merged commit 0f4f465 into discord:main Jul 29, 2024
@shaydewael shaydewael deleted the user-install-getting-started branch July 29, 2024 15:39
@shaydewael shaydewael mentioned this pull request Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants