Skip to content

Commit a9fced6

Browse files
openExternalLink returns a { opened: boolean | null } result (#7273)
* Add a response type for openExternalLink that returns a boolean opened value * updating the documentation to include the null case for older discord clients * doc update
1 parent 19ea995 commit a9fced6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/developer_tools/Embedded_App_SDK.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ No scopes required
524524
#### Signature
525525

526526
<Monospace>
527-
openExternalLink(args: [OpenExternalLinkRequest](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/openexternallinkrequest)): Promise\<void\>
527+
openExternalLink(args: [OpenExternalLinkRequest](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/openexternallinkrequest)): Promise\<[OpenExternalLinkResponse](#DOCS_DEVELOPER_TOOLS_EMBEDDED_APP_SDK/openexternallinkresponse)\>
528528
</Monospace>
529529

530530
#### Usage
@@ -1335,6 +1335,15 @@ No scopes required
13351335
|----------|--------|
13361336
| url | string |
13371337

1338+
#### OpenExternalLinkResponse
1339+
1340+
> warn
1341+
> `{ opened: null }` is returned on Discord clients before December 2024 that do not report the open link result.
1342+
1343+
| Property | Type |
1344+
|----------|-----------------|
1345+
| opened | boolean \| null |
1346+
13381347
#### OpenInviteDialogRequest
13391348

13401349
| Property | Type |

0 commit comments

Comments
 (0)