mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +00:00
My ESLint is broken
This commit is contained in:
parent
d42b589528
commit
4be7a1bfd1
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue