Skip to content

Commit

Permalink
Clean animated emotes in Message#cleanContent (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
IotaBlack authored Nov 29, 2020
1 parent e789deb commit 03e9697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class Message extends Base {
}

get cleanContent() {
let cleanContent = this.content.replace(/<(:\w+:)[0-9]+>/g, "$1");
let cleanContent = this.content.replace(/<a?(:\w+:)[0-9]+>/g, "$1");

let authorName = this.author.username;
if(this.channel.guild) {
Expand Down

0 comments on commit 03e9697

Please sign in to comment.