Write some more docs

This commit is contained in:
Amish Shah
2016-08-17 23:46:58 +01:00
parent 562e3b119e
commit c37191b582
4 changed files with 85 additions and 2 deletions

View File

@@ -53,6 +53,13 @@ class User {
this.game = data.game || this.game;
}
/**
* When concatenated with a String, this automatically concatenates the User's mention instead of the User object.
* @returns {String}
* @example
* // logs: Hello from <@123456789>!
* console.log(`Hello from ${user}!`);
*/
toString() {
return `<@${this.id}>`;
}