S
S
SlyuJoke2021-05-10 18:21:46
JavaScript
SlyuJoke, 2021-05-10 18:21:46

How to make command replay if you have the right tag in your nickname?

How to make a command that will only work if the right tag is present?
For example:
Command: role
Nickname: [Discord] alez
If, when writing a command, the author has the [Discord] tag in his nickname, then an embed is sent about a successful request, and if not, an embed about an error is sent.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-05-10
@SlyuJoke

Message.author -> User.username

message.author.user.username.startsWith('[Discord]')

Embed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question