Reputation: 5
I have Discord bot written on Python and I'm working on command that could show info about ur steam acc. Rn it asks for writing ID manually.
But how can I get ID of user's Steam account if user has it connected to their Discord acc? Is there any method for it?
Upvotes: 0
Views: 2557
Reputation: 2474
What you are looking for is the parameter connected_accounts
, this will retrieve a list of dictionaries showing the accounts connected to that user.
One thing to point out is that due to Discord limitations (bots cannot access User.Profile
), discord.py does not currently allow a bot account to use this function (it will always return None
), so to use it you would need to be in a user bot account, which are against Discord terms of service.
Upvotes: 1