N
N
nikkkushkaaa2021-01-13 17:01:53
Node.js
nikkkushkaaa, 2021-01-13 17:01:53

How to make a check for the mention of the role and not the user?

The situation is this, after entering the command, you need to mention the role and after the text. I did a check for the text, but I don’t understand how to check for the role tag.
I did a check for the user, everything is fine, but I don’t understand how to check for the mention of the role. I'm in a tank

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-01-13
@nikkkushkaaa

if you want to "pick up" the first mention of a user in a message, message.mentions.users.first().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question