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

Merged
merged 1 commit into from
Nov 13, 2024
Merged

add location ID to SDK #281

merged 1 commit into from
Nov 13, 2024

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
@donaldchen donaldchen merged commit 2cb879a into main Nov 13, 2024
4 checks passed
@donaldchen donaldchen deleted the donaldchen/add-location-id branch November 13, 2024 22:57
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