mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
Fix
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user