mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
fix the everyone role mentioning (#1032)
This commit is contained in:
@@ -321,6 +321,7 @@ class Role {
|
|||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
toString() {
|
toString() {
|
||||||
|
if (this.id === this.guild.id) return '@everyone';
|
||||||
return `<@&${this.id}>`;
|
return `<@&${this.id}>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user