Add scheduled-events endpoint scope for OAuth2 #5057
Unanswered
Inrixia
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 2 replies
-
That would not make guild events private once a member authorizes with some kind of scope of that. It would mean that the bot needs to be on every server, which does not equal to what the |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
So currently the
https://discord.com/api/v10/guilds/{guild.id}/scheduled-events
endpoint can only be accessed via a bot that has been added to a guild with permissions and is not accessible with a client token from OAuth2.I wanted to have a client app access this endpoint, currently I would have to sign in the client using OAuth2, fetch their guilds, request to the applications bot (via a separate api that has the bots secret) to get the guilds events, if the bot is not in the guild then respond prompting the user to add the bot (and hope the user has permission to do so), and then fetch the events.
This seems overly complex for just wanting to fetch the events for guilds a user is in when it should be possible to just have it as a scope granted allowing for the client to call the endpoint directly without the need to add a bot to the server.
Beta Was this translation helpful? Give feedback.
All reactions