O
O
Oleg2021-03-07 11:00:24
Node.js
Oleg, 2021-03-07 11:00:24

How to get the username specified in the channel?

Discord has 2 lists of users.
One is the name of the author, which is indicated directly in the profile of the user himself.
The second is the username assigned to him directly on the server by the administrator of that server. Screenshot to understand where it is:
60448846399fb046858380.png

If you request message.author.username, the name specified in the profile will be returned.
Where and how to request lists of server (channel/guild) usernames?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2021-03-07
@VDT2

message.guild.members.cache.get(message.author.id).nickname

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question