How to check if Member Authorzied with OAuth2 Application?
Hey someone got the knowledge. I have a Embed message with a Button and the oauth2 authorzie link in it. How Can i implemend in the Code, that the Bot check if the User have it self authorized and give him a specific Role. My latest Code:
https://pastebin.com/XGmBgH8n
with the error Code:
I know the client.application.commands.get is the problem but I dont know, how to fix that rightly.
Thanks for everybody help! :D
Pastebin
const { Client, Intents, Permissions, MessageEmbed, EmbedBuilder, M...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button![email protected]
node v20.10.0
djs does not support oauth2
and you'd use fetch instead of get
and handle the promise it returns