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
d.js toolkit
d.js toolkit2w 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!
br1t
br1tOP2w ago
v14.17
TÆMBØ
TÆMBØ2w ago
<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
d.js docs
d.js docs2w ago
:property: GuildMember#roles [email protected] A manager for the roles belonging to this member

Did you find this page helpful?