We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cabc1c0 commit b164945Copy full SHA for b164945
docs/activities/Development_Guides.mdx
@@ -676,13 +676,12 @@ See the example below:
676
677
678
```javascript
679
-import {DiscordSDK} from '@discord/embedded-app-sdk';
680
-const discordSdk = new DiscordSDK(YOUR_APP_ID);
+import {patchUrlMappings} from '@discord/embedded-app-sdk';
681
const isProd = process.env.NODE_ENV === 'production'; // Actual dev/prod env check may vary for you
682
683
async function setupApp() {
684
if (isProd) {
685
- discordSdk.patchUrlMappings([{prefix: '/foo', target: 'foo.com'}]);
+ patchUrlMappings([{prefix: '/foo', target: 'foo.com'}]);
686
}
687
// start app initialization after this....
688
0 commit comments