mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Add nickname mention format to GuildMember.toString
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user