Move around mentions and stuff

This commit is contained in:
Amish Shah
2016-08-22 23:09:45 +01:00
parent ddd3ea9727
commit 2a1799f20f
4 changed files with 50 additions and 15 deletions

View File

@@ -213,6 +213,14 @@ class Role {
return ((this.permissions & permission) > 0);
}
/**
* When concatenated with a String, this automatically concatenates the Role mention rather than the Role object.
* @returns {String}
*/
toString() {
return `<@&${this.id}>`;
}
}
module.exports = Role;