forked from embee/woomy
message.content: Remove zero-width characters.
This commit is contained in:
parent
1837e6e751
commit
63f5dbc6d3
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
const cooldown = new Set();
|
||||
module.exports = async (client, message) => {
|
||||
if (message.author.bot) return;
|
||||
|
||||
if (typeof(message.content) === 'string') message.content = message.content.replace(/\u8203/g,'').replace(/\uB200/g,'').replace("\\uB200",''); // Remove zero-width characters
|
||||
|
||||
var settings;
|
||||
|
||||
if(message.guild) {
|
||||
|
|
Loading…
Reference in a new issue