message.content: Remove zero-width characters.

This commit is contained in:
Lukáš H 2020-05-12 10:41:48 +02:00
parent 1837e6e751
commit 63f5dbc6d3
No known key found for this signature in database
GPG key ID: E07D6630DBC17195

View file

@ -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) {