We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac852c7 commit a5d753fCopy full SHA for a5d753f
docs/developer_tools/Embedded_App_SDK.md
@@ -528,15 +528,17 @@ Locks the application to specific orientations in each of the supported layout m
528
529
#### Required Scopes
530
531
-- guilds.members.read
+No scopes required
532
533
#### Usage
534
535
```js
536
+import {Common} from '@discord/embedded-app-sdk';
537
+
538
await discordSdk.commands.setOrientationLockState({
- lock_state: 'landscape',
- picture_in_picture_lock_state: 'landscape',
539
- grid_lock_state: 'unlocked'
+ lock_state: Common.OrientationLockStateTypeObject.LANDSCAPE,
540
+ picture_in_picture_lock_state: Common.OrientationLockStateTypeObject.LANDSCAPE,
541
+ grid_lock_state: Common.OrientationLockStateTypeObject.UNLOCKED
542
});
543
```
544
0 commit comments