mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +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}!`);
|
* console.log(`Hello from ${member}!`);
|
||||||
*/
|
*/
|
||||||
toString() {
|
toString() {
|
||||||
return String(this.user);
|
return `<@${this.nickname ? '!' : ''}${this.user.id}>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// These are here only for documentation purposes - they are implemented by TextBasedChannel
|
// These are here only for documentation purposes - they are implemented by TextBasedChannel
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue