Application Ownership Verification #8035
Unanswered
The-LukeZ
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add API endpoints to verify if a user owns or has access to a Discord application, enabling developers to build tools that require application ownership validation.
I wanna bump this topic into existence because I'm building something that should verify ownership of an app before accessing some things.
Motivation
Currently, there is no straightforward way to verify through the Discord API whether a user owns or has access to manage a specific application. This limitation makes it difficult for:
Proposed Solutions
Option 1: Enhanced User Object + Team Endpoint
Add ownership information to the application object and provide a team endpoint for verification:
Changes to Application Object
{ "id": "123456789", "name": "My Bot", "owner_id": "987654321", "owner_type": "user", // or "team" or an enum value indicating the owner type // ... }New Endpoint:
Returns team information including member list (array of partial user objects), allowing verification that a user is part of the team that owns an application.
Pros:
Cons:
Option 2: OAuth2 Applications Endpoint (Preferred)
Add a new OAuth2 endpoint that returns all applications a user has access to:
New Endpoint:
Required OAuth2 Scope:
applications.read(new scope) or use an existing scopeResponse:
[ { "id": "123456789", "name": "My Bot", "icon": "...", "description": "...", "access_type": "owner" // or "team_member" }, // ... more applications ]The applications are either an application object or partial user objects.
Pros:
/@me/*)Cons:
Implementation Notes
Alternative Considerations
If both options are feasible, implementing Option 2 would be the most developer-friendly solution, while Option 1 could be added later for more granular team management features.
References
Beta Was this translation helpful? Give feedback.
All reactions