I noticed this bot requests to avatar.lyrebird.ai/api/v0/token on lines 18 to 29.
This step is unnecessary if myvoice.lyrebird.ai/authorize is called with response_type as token. This is described in the documentation as "OAuth 2.0 Implicit Flow".
The functionality is almost identical as the user has to copy the URL either way, so I believe it would be a good way to remove one unnecessary request.
(Note that this method requires OAuth 2.0 Implicit Flow, so it does not work with #4)
Thanks for the issue! Sounds like a good suggestion, so I'll take a look at implementing this change once I've migrated to the new V1 API of discord.py.
I noticed this bot requests to
avatar.lyrebird.ai/api/v0/token
on lines 18 to 29.This step is unnecessary if
myvoice.lyrebird.ai/authorize
is called withresponse_type
astoken
. This is described in the documentation as "OAuth 2.0 Implicit Flow".The functionality is almost identical as the user has to copy the URL either way, so I believe it would be a good way to remove one unnecessary request.
(Note that this method requires OAuth 2.0 Implicit Flow, so it does not work with #4)