how do i grab the role made by an integration
i need to know how to grab the role id that a bot makes when it joins a discord (e.g the dyno role that dyno makes when it joins)
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!v14.17
<GuildMember>.roles.botRole?.id
Just as an FYI; this role is only created if the app is invited with the bot scope and with additional permissions