mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Add nickname mention format to GuildMember.toString
This commit is contained in:
parent
d35372d3e9
commit
51f30d6e4c
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ class GuildMember {
|
|||
* console.log(`Hello from ${member}!`);
|
||||
*/
|
||||
toString() {
|
||||
return String(this.user);
|
||||
return `<@${this.nickname ? '!' : ''}${this.user.id}>`;
|
||||
}
|
||||
|
||||
// These are here only for documentation purposes - they are implemented by TextBasedChannel
|
||||
|
|
|
|||
Loading…
Reference in a new issue