Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground improvement #41

Merged
merged 6 commits into from
Dec 2, 2024
Merged

Playground improvement #41

merged 6 commits into from
Dec 2, 2024

Conversation

yonilerner
Copy link
Member

No description provided.

@yonilerner yonilerner changed the title Improvements for contextless Playground improvements for contextless Nov 22, 2024
@yonilerner yonilerner changed the title Playground improvements for contextless Playground improvements for rich presence Nov 27, 2024
@yonilerner yonilerner changed the title Playground improvements for rich presence Playground improvement Nov 27, 2024
Copy link
Collaborator

@afgiel afgiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a few nits but mostly lgtm

if (!auth) {
return;
}
const instanceResponse = await fetch(`/api/activity-instance/${discordSdk.instanceId}`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@@ -43,7 +43,7 @@ export const start = async () => {
'rpc.voice.write',
'rpc.voice.read',
// "webhook.incoming",
discordSdk.guildId == null ? 'dm_channels.read' : null, // This scope requires approval from Discord.
// discordSdk.guildId == null ? 'dm_channels.read' : null, // This scope requires approval from Discord.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this meant to be included?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes because it just breaks the activity if you don't have the scope, and you need to do special stuff to get the scope

sdk-playground/packages/client/vite.config.ts Show resolved Hide resolved
@yonilerner yonilerner merged commit f5012e0 into main Dec 2, 2024
2 checks passed
@yonilerner yonilerner deleted the contextless branch December 2, 2024 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants