Search
Setup for Free
d-Iā
discord.js - Imagine ā
ā¢
3y ago
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.
58,338
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
Ā© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
let
targetMember
=
message.mentions.members?.
first
()
let
targetMember
=
message.mentions.members?.
first
()
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
11mo ago