Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
If user has higher role than bot - discord.js - Imagine ❄
d-I❄
discord.js - Imagine ❄
•
3y ago
•
9 replies
adam 🇦🇱
If user has higher role than bot
Currently i have this code
:
let
targetMember
=
message.mentions.members?.
first
()
let
targetMember
=
message.mentions.members?.
first
()
how can i check if the bot has a lower role than targetMember
?
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,915
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Check if user has a role
d-I❄
discord.js - Imagine ❄ / djs-questions
4y ago
Check if user has bot subscription
d-I❄
discord.js - Imagine ❄ / djs-questions
13mo ago