mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Optimise everyone/here replacing
This commit is contained in:
@@ -236,8 +236,7 @@ class Message {
|
||||
*/
|
||||
get cleanContent() {
|
||||
return this.content
|
||||
.replace(/@everyone/g, '@\u200Beveryone')
|
||||
.replace(/@here/g, '@\u200Bhere')
|
||||
.replace(/@(everyone|here)/g, '@\u200b$1')
|
||||
.replace(/<@!?[0-9]+>/g, (input) => {
|
||||
const id = input.replace(/<|!|>|@/g, '');
|
||||
if (this.channel.type === 'dm' || this.channel.type === 'group') {
|
||||
|
||||
Reference in New Issue
Block a user