Skip to content

Commit b164945

Browse files
authored
fix patchUrlMappings code example (#6808)
1 parent cabc1c0 commit b164945

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/activities/Development_Guides.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -676,13 +676,12 @@ See the example below:
676676

677677

678678
```javascript
679-
import {DiscordSDK} from '@discord/embedded-app-sdk';
680-
const discordSdk = new DiscordSDK(YOUR_APP_ID);
679+
import {patchUrlMappings} from '@discord/embedded-app-sdk';
681680
const isProd = process.env.NODE_ENV === 'production'; // Actual dev/prod env check may vary for you
682681

683682
async function setupApp() {
684683
if (isProd) {
685-
discordSdk.patchUrlMappings([{prefix: '/foo', target: 'foo.com'}]);
684+
patchUrlMappings([{prefix: '/foo', target: 'foo.com'}]);
686685
}
687686
// start app initialization after this....
688687
}

0 commit comments

Comments
 (0)