mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
My ESLint is broken
This commit is contained in:
@@ -173,11 +173,13 @@ class Message {
|
||||
if (user) return `@${user.username}`;
|
||||
return input;
|
||||
}
|
||||
}).replace(/<#[0-9]+>/g, (input) => {
|
||||
})
|
||||
.replace(/<#[0-9]+>/g, (input) => {
|
||||
const channel = this.client.channels.get(input.replace(/<|#|>/g, ''));
|
||||
if (channel) return `#${channel.name}`;
|
||||
return input;
|
||||
}).replace(/<@&[0-9]+>/g, (input) => {
|
||||
})
|
||||
.replace(/<@&[0-9]+>/g, (input) => {
|
||||
const role = this.guild.roles.get(input.replace(/<|@|>|&/g, ''));
|
||||
if (role) return `@${role.name}`;
|
||||
return input;
|
||||
|
||||
Reference in New Issue
Block a user