This commit is contained in:
Dragon Fire
2021-02-28 15:04:07 -05:00
parent f61df82de7
commit b6c71a1b5f
+2 -2
View File
@@ -191,8 +191,8 @@ module.exports = class Util {
});
}
static embedURL(title, url, display) {
return `[${title}](${url.replaceAll(')', '%29')}${display ? ` "${display}"` : ''})`;
static embedURL(title, uri, display) {
return `[${title}](${uri.replaceAll(')', '%29')}${display ? ` "${display}"` : ''})`;
}
static stripInvites(str, { guild = true, bot = true, text = '[redacted invite]' } = {}) {