Check if a member has a role in a different server
I am currently using discord.js v12.5.3 (Yes I know its old but I dont want to update at the moment so leave me alone)
I want to have a command which checks the premium status of a member. I basically want the command to check if the member is in the official support server, and then check if they have a specific role in the support server.
I know how to check if they are in the support server but not check their roles in that server. I can only make it so the bot checks the roles in the server they ran the command in. Can anyone help?
Much appreciated.
4 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!
- ✅
Marked as resolved by staffWe are at 14.14.0 right now, 12.5.3 is indeed very old, and is deprecated, you won't receive support for it, so you should update
any specific reason you didn’t update code?
He probably coded alot of stuff and doesn't have the time to update them or something