Turn off display embedURL in gen-credit

This commit is contained in:
Dragon Fire
2020-04-12 09:49:00 -04:00
parent c838fedcb7
commit 8f77fb9438
3 changed files with 399 additions and 398 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ module.exports = class Util {
}
static embedURL(title, url, display = url) {
return `[${title}](${url.replace(/\)/g, '%27')}, "${display}")`;
return `[${title}](${url.replace(/\)/g, '%27')}${display ? `, "${display}"` : ''})`;
}
static async verify(channel, user, { time = 30000, extraYes = [], extraNo = [] } = {}) {