pseudobeard / teambalancer

GNU General Public License v3.0
0 stars 1 forks source link

Pull Battlenet ID from Discord.member #1

Open pseudobeard opened 7 years ago

pseudobeard commented 7 years ago

I know there is a way to get the name of the member that executed the command.

Something I want to add is for commands that take in player args, the bot should pull the member id and then pull the player id from that member's linked accounts.

cheshire137 commented 7 years ago

"Member" here refers to the Discord user, right, and "player" = "Battlenet player"? I take it there's a way to specify your Battlenet account in your Discord settings, maybe via OAuth logging into Discord through Battle.net?

pseudobeard commented 7 years ago

There is a way thru OAuth. discord.member is the member object of the member that called the command.

PlayerID is the battle net ID