Sopur / Discord-user-bots

Working discord user bots library.
MIT License
81 stars 35 forks source link

refresh token #39

Open dbrab opened 1 year ago

dbrab commented 1 year ago

Is there any way to get a refresh token? , normally the tokens do not last more than 12 hours, and I need to re-inspect the requests to get the token, so I saw discord has a ws where the token is passed. access to start

Sopur commented 1 year ago

This problem has gone unnoticed by me until recently when I tried to run the library on an account with a verified phone number. There is no logic to refresh the token nor is there a callback that is called on all discord events so you can do it yourself. For now, you or anyone else with the same problem should edit the library's code on their local machine to add the needed logic. Thank you for bringing this to my attention, I will fix this in the next update of Discord User Bots.