mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Add Message.toString
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -366,6 +366,17 @@ class Message {
|
|||||||
|
|
||||||
return equal;
|
return equal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When concatenated with a string, this automatically concatenates the Message's content instead of the object.
|
||||||
|
* @returns {string}
|
||||||
|
* @example
|
||||||
|
* // logs: Message: This is a message!
|
||||||
|
* console.log(`Message: ${message}`);
|
||||||
|
*/
|
||||||
|
toString() {
|
||||||
|
return this.content;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Message;
|
module.exports = Message;
|
||||||
|
|||||||
Reference in New Issue
Block a user