#How can I know if a member manages another member?

8 messages · Page 1 of 1 (latest)

frigid dust
#

No idea how to do this one

#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

sacred wyvern
#

this is a really vague question, and I'm not sure why this is in #998942774994927646
but likely you'd want to wait for the new GUILD_AUDIT_LOG_ENTRY_CREATE event to be implemented in the next release

frigid dust
thorny jacinthBOT
#

property GuildMember#manageable
Whether the client user is above this user in the hierarchy, according to role position and guild ownership. This is a prerequisite for many moderative actions.

frigid dust
#

@sacred wyvern Sorry for pinging you again but I was looking for a function that checks if member A can ban/kick/mute member B

sacred wyvern
#

ah sorry
there isn't a function like that, but if you check out the source for <GuildMember>.bannable, <GuildMember>.kickable, <GuildMember>.moderatable, and <GuildMember>.mangeable you could write something similar to check for other members than the client user