Assistance getting role by ID
Im trying to get a role via ID, however, whenever i pass that roleID to permissions override in channel.create, it throws a error saying its neither a role nor a User, can i not give channel permissions this way?
Code snippet:
Error
Full Code:
hastebin.com/share/tifugigeno.javascript
9 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.PS C:...> node -v
v19.8.1
PS C:...> npm list discord.js
[email protected] C:...
└── [email protected]
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Uh nvm i guess? I changed litterly nothing but added the log for that, and now it works perfectly fine, for some reason..?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Well i thought so to, but vscode has auto save on, lmao
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah thank you though! You guys really are magical haha!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View