Skip to content

Commit a5d753f

Browse files
authored
Update usage notes for setOrientationLockState (discord#6863)
1 parent ac852c7 commit a5d753f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/developer_tools/Embedded_App_SDK.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,17 @@ Locks the application to specific orientations in each of the supported layout m
528528

529529
#### Required Scopes
530530

531-
- guilds.members.read
531+
No scopes required
532532

533533
#### Usage
534534

535535
```js
536+
import {Common} from '@discord/embedded-app-sdk';
537+
536538
await discordSdk.commands.setOrientationLockState({
537-
lock_state: 'landscape',
538-
picture_in_picture_lock_state: 'landscape',
539-
grid_lock_state: 'unlocked'
539+
lock_state: Common.OrientationLockStateTypeObject.LANDSCAPE,
540+
picture_in_picture_lock_state: Common.OrientationLockStateTypeObject.LANDSCAPE,
541+
grid_lock_state: Common.OrientationLockStateTypeObject.UNLOCKED
540542
});
541543
```
542544

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy