Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

How to grab mentioned user's level? #82

Closed
Swordington opened this issue May 12, 2019 · 2 comments
Closed

How to grab mentioned user's level? #82

Swordington opened this issue May 12, 2019 · 2 comments

Comments

@Swordington
Copy link

Hi there! How do I fetch/grab a mentioned / otherwise selected (other than the message author) user's level? I'm trying to make a dynamic whois command that shows something different for level 8,9,10 users.
Any help is greatly appreciated! Thanks!

@AndrewJWin
Copy link
Contributor

This question is more suited for the Idiot's Guide discord. However, an answer to your question be found here.

Recommend closing

@YorkAARGH
Copy link
Member

You can access the mentioned users perm level by grabbing the member object first by message.mentions.users.first() then it's just a simple user.permLevel and you have their level. but as @AndrewJWin has mentioned these kind of questions belong on the Idiot's Guide support guild, here's an invite.

https://discord.gg/4NE4bk7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants