#What's the easiest way to check a bot's highest role position?
22 messages · Page 1 of 1 (latest)
• 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.
That is the straightforward approach…
Aight then
Just making sure
Thank you!
Huh
That's not working
console.log(interaction.guild.members.me.roles.highest.position);
is giving me
TypeError: Cannot read properties of undefined (reading 'roles')
@rain forge Any idea what's wrong?
Then interaction is no Interaction
The order of function parameters must match between definition and function call.
function execute(client, message, args) { ... };
execute(message, client, args);
• mismatch! you pass a Message where the client is expected
• mismatch! you pass the Client where a Message is expected
How could that happen?
The tag tells you
Hmmm
Well that's not the case here
Because only the interaction is being passed into the function
Nothing else...
@livid idol the post tag says you're on v13, but guild.members.me is for v14. In v13 it's guild.me
Oh, good catch
Yeah someone else told me about that after
Thanks