darthteddy1
darthteddy1

Reputation: 55

Check User's connections

I am currently working on a discord bot (using the discord.js library). This bot uses steam integration to get a user's inventory. Is there a way to check if the person has steam connected to their account and get their steam account ID? If not, how should I make sure people can link their steam account to my bot?

Upvotes: 1

Views: 5149

Answers (2)

marpme
marpme

Reputation: 2435

I think you might search for this specific documentation/implementation (User -> UserProfile -> UserConnection), but I wouldn't recommend using it, since it is really instable and you can only use it as a normal user not as a bot.

I would rather think about implementing a link system on your own, where user can try to link their accounts and mods must approve those linkings.

Upvotes: 1

LW001
LW001

Reputation: 2893

The Discord API does not support this through Bot Accounts as far as I'm aware. As noted previously it's only possible using User accounts, though automating user accounts is against the Discord Terms Of Service and the Discord API Terms so I wouldn't recommend it.

Upvotes: 1

Related Questions