This commit is contained in:
Dragon Fire
2020-05-08 10:13:57 -04:00
parent 28f5f1be76
commit 13237eaf0a
+1 -1
View File
@@ -152,7 +152,7 @@ module.exports = class Util {
return `[${title}](${url.replace(/\)/g, '%27')}${display ? ` "${display}"` : ''})`;
}
static stripInvites(str, { guild = true, bot = true, text = '[redacted invite]' }) {
static stripInvites(str, { guild = true, bot = true, text = '[redacted invite]' } = {}) {
if (guild) str = str.replace(inviteRegex, text);
if (bot) str = str.replace(botInvRegex, text);
return str;