mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Move around mentions and stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user