Hi @nanaki658,
Thanks for reaching out to the Auth0 Community!
To make Discord API calls during the login flow, I recommend checking out the instructions in our How do I make an Axios API call and store it as a custom claim using Actions? FAQ on using an Action to call an API.
Please let me know if you have any questions about the implementation.
Thanks,
Rueben