Search for a role by ID

How can I find a role by ID?
4 Replies
d.js toolkit
d.js toolkit9mo ago
- 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 OP
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
iFel1x
iFel1xOP9mo ago
help pls)
const Role = Guild.roles.cache.get("1217094699664281600");
console.log(Role);
const Role = Guild.roles.cache.get("1217094699664281600");
console.log(Role);
TypeError: Cannot read properties of undefined (reading 'cache')
d.js docs
d.js docs9mo ago
Explaining <Class> and Class#method notation: learn more
Want results from more Discord servers?
Add your server