Skip to content

Commit

Permalink
Add a withFilteredMentions formatting pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
zed0 authored and FauxFaux committed Jul 5, 2022
1 parent ed9f415 commit 08bc027
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ class Bot {
}

patternMap.withMentions = withMentions;
patternMap.withFilteredMentions = withMentions.replace(/@(here|everyone)/ig, (match, part) => `ම${part}`);

// Add bold formatting:
// Use custom formatting from config / default formatting with bold author
Expand Down

0 comments on commit 08bc027

Please sign in to comment.