I’m looking to make a discord bot that can surface a profile summary if given a battletag. The intent is for members of the chat to be able to quickly access their stats from chat.
I’m finding this hard to do. The user APIs are reliant the
profileId parameter. The only place I can see that this get’s returned is via
/oauth/userinfo which require’s the user to have gone through an OAuth flow first. Since the bot only has access to its own credentials, it’s not able to call this to get someone else’s profileId.
Is there a way that I can surface
profileId given a battletag rather than via OAuth flow (I assume there’s a way since sites like rankedftw and the official Overwatch site have this kind of search)? Or is there a way to trigger and complete an OAuth flow for a user within a discord channel? I’d rather not have to host another app just for the OAuth flow.