twilight icon indicating copy to clipboard operation
twilight copied to clipboard

Support the GET /oauth2/@me endpoint

Open damccull opened this issue 3 years ago • 0 comments

Currently when using twilight_http's client.current_user_application() method you must use an existing bot token. For applications that don't have a bot token because they are pure webhook-interaction applications, this information must be manually supplied instead of being looked up.

This seems to be due to the existing API supporting only the endpoint GET /oauth2/applications/@me. Please also support the endpoint GET /oauth2/@me so that bearer token authentication can get similar information via a lookup.

See https://discord.com/channels/745809834183753828/958900681085976656/959103887799902231 for the conversation about this.

damccull avatar Mar 31 '22 17:03 damccull