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

add location ID to SDK #281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

donaldchen
Copy link
Contributor

The GET /applications/<application_id>/activity-instances/<instance_id> endpoint returns Activity instances with a location ID that does not necessarily refer to a channel. Discord passes the location_id query parameter to the iframe, so the Activity can compare that location ID with the location ID in the response from the GET /applications/<application_id>/activity-instances/<instance_id> endpoint.

This PR adds a locationId property to the SDK for reading that query parameter more easily.

@donaldchen donaldchen marked this pull request as ready for review November 12, 2024 16:24
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