© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
If user has higher role than bot - discord.js - Imagine an app
d-Iaa
discord.js - Imagine an app
•
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 an app
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,693
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-Iaa
discord.js - Imagine an app / djs-questions
4y ago
Check if user has bot subscription
d-Iaa
discord.js - Imagine an app / djs-questions
14mo ago