Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/activities/development-guides/user-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ User Experience

An [Entry Point command](/docs/interactions/application-commands#entry-point-commands) is required for users to be able to launch your Activity from the [App Launcher menu](https://support.discord.com/hc/articles/21334461140375-Using-Apps-on-Discord#h_01HRQSA6C8TRHS722P1H3HW1TV) in Discord.

When you enable Activities in your [app's settings](http://discord.com/developers/applications), a [default Entry Point command](/docs/interactions/application-commands#default-entry-point-command) is automatically created for your app. The default Entry Point command will use the `DISCORD_LAUNCH_ACTIVITY` (`2`) [handler type](/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types), which means that Discord automatically launches your Activity for the user and posts a follow-up message into the channel where it was launched from.
When you enable Activities in your [app's settings](https://discord.com/developers/applications), a [default Entry Point command](/docs/interactions/application-commands#default-entry-point-command) is automatically created for your app. The default Entry Point command will use the `DISCORD_LAUNCH_ACTIVITY` (`2`) [handler type](/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types), which means that Discord automatically launches your Activity for the user and posts a follow-up message into the channel where it was launched from.

If you want to handle sending messages yourself, you can update the handler to be `APP_HANDLER` (`1`). Details about Entry Point command handlers is in the [Entry Point command documentation](/docs/interactions/application-commands#entry-point-handlers).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Discord Developers can now build Activities!
Activities are interactive, multiplayer experiences that run in an iframe in Discord. In order to make the communication between your experience and Discord, we've introduced the Embedded App SDK to assist in communicating between your app and the Discord client.

* New [Discord Activities](/docs/activities/overview) developer docs with a tutorial, code samples, development guides, and design principles.
* The Embedded App SDK is now available via [npm](https://npmjs.com/package/@discord/embedded-app-sdk) and [GitHub](http://github.com/discord/embedded-app-sdk).
* The Embedded App SDK is now available via [npm](https://npmjs.com/package/@discord/embedded-app-sdk) and [GitHub](https://github.com/discord/embedded-app-sdk).
* The [Embedded App SDK Reference](/docs/developer-tools/embedded-app-sdk) is now available.

To learn more about how to get started building your own Activity, check out the [Activities Overview](/docs/activities/overview).
2 changes: 1 addition & 1 deletion docs/change-log/2024-08-26-entry-point-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ More details about Entry Point commands can be found in the [Application Command

### Default Entry Point Commands

Starting today, when you enable Activities in your [app's settings](http://discord.com/developers/applications), a [default Entry Point command](/docs/interactions/application-commands#default-entry-point-command) called "Launch" will automatically be created for your app. This can be customized or deleted like other commands if you want to update the name or handler type.
Starting today, when you enable Activities in your [app's settings](https://discord.com/developers/applications), a [default Entry Point command](/docs/interactions/application-commands#default-entry-point-command) called "Launch" will automatically be created for your app. This can be customized or deleted like other commands if you want to update the name or handler type.
4 changes: 2 additions & 2 deletions docs/components/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Action Rows can contain one of the following:
"type": 2, // ComponentType.BUTTON
"label": "Learn More",
"style": 5,
"url": "http://watchanimeattheoffice.com/"
"url": "https://watchanimeattheoffice.com/"
},
{
"type": 2, // ComponentType.BUTTON
Expand Down Expand Up @@ -1575,7 +1575,7 @@ To use this component in messages you must send the [message flag](/docs/resourc
"components": [
{
"type": 10, // ComponentType.TEXT_DISPLAY
"content": "# This is a Text Display\nAll the regular markdown rules apply\n- You can make lists\n- You can use `code blocks`\n- You can use [links](http://watchanimeattheoffice.com/)\n- Even :blush: :star_struck: :exploding_head:\n- Spoiler alert: ||these too!||"
"content": "# This is a Text Display\nAll the regular markdown rules apply\n- You can make lists\n- You can use `code blocks`\n- You can use [links](https://watchanimeattheoffice.com/)\n- Even :blush: :star_struck: :exploding_head:\n- Spoiler alert: ||these too!||"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/quick-start/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ If you have troubles verifying your endpoint, make sure both ngrok and your app
:::

The verification is handled automatically by the sample app in two ways:
- It uses the `PUBLIC_KEY` and [discord-interactions package](https://github.com/discord/discord-interactions-js#usage) with a wrapper function (imported from `utils.js`) that makes it conform to [Express's `verify` interface](http://expressjs.com/en/5x/api.html#express.json). This is run on every incoming request to your app.
- It uses the `PUBLIC_KEY` and [discord-interactions package](https://github.com/discord/discord-interactions-js#usage) with a wrapper function (imported from `utils.js`) that makes it conform to [Express's `verify` interface](https://expressjs.com/en/5x/api.html#express.json). This is run on every incoming request to your app.
- It responds to incoming `PING` requests.

You can learn more about preparing your app to receive interactions in [the interactions documentation](/docs/interactions/overview#preparing-for-interactions).
Expand Down
16 changes: 9 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions tools/doxygen/decorate-social-sdk-references.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const processMarkdownFile = (filePath, mapping) => {

if (hasChanged) {
fs.writeFileSync(filePath, newContent, "utf-8");
// eslint-disable-next-line no-undef

console.log(`Updated ${filePath} with ${referencesFound.size} references`);
}

Expand All @@ -151,7 +151,6 @@ const processMarkdownFile = (filePath, mapping) => {
const processMarkdownFiles = async () => {
const mapping = loadMapping();
if (!Object.keys(mapping).length) {
// eslint-disable-next-line no-undef
console.error("Mapping is empty! Make sure the JSON is generated correctly.");
return;
}
Expand All @@ -174,12 +173,10 @@ const processMarkdownFiles = async () => {
}

if (filesUpdated > 0) {
// eslint-disable-next-line no-undef
console.log(
`\nSDK reference links processed. Updated ${filesUpdated} files with ${totalReferences} total references.`,
);
} else {
// eslint-disable-next-line no-undef
console.log("SDK reference links processed. No changes were made to any files.");
}
};
Expand Down
3 changes: 1 addition & 2 deletions tools/doxygen/generate-social-sdk-mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ const generateMapping = async () => {
const outputJsonPath = resolvePath(OUTPUT_JSON, true);
await fs.promises.writeFile(outputJsonPath, JSON.stringify(mapping, null, 2));

// eslint-disable-next-line no-undef
console.log(`JSON mapping saved to ${outputJsonPath}`);
};

// Run the script
// eslint-disable-next-line no-undef

generateMapping().catch(console.error);
2 changes: 1 addition & 1 deletion tools/parse-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ breaking: ${file.breaking ? "true" : "false"}
.replace(/[ _:&,/*]/g, "-")
.replace(/---/g, "-")
.replace(/--/g, "-");
// eslint-disable-next-line no-undef

console.log(slug);
await fs.writeFile(`./docs/change_log/${slug}.md`, content);
}