From 2fad80a5350b5c9a1eeaa5062996b63cabace690 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 10 May 2017 19:33:09 +0200 Subject: encode embed urls, fixes players with spaces --- util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.js b/util.js index 0f37918..b86b8a7 100644 --- a/util.js +++ b/util.js @@ -23,7 +23,7 @@ module.exports.vainsocialEmbed = (title, link, command) => { return new Discord.RichEmbed() .setTitle(title) .setColor("#55ADD3") - .setURL(ROOTURL + link + util.track(command)) + .setURL(ROOTURL + encodeURIComponent(link) + util.track(command)) .setAuthor("VainSocial" + (PREVIEW? " preview":""), ROOTURL + "images/brands/logo-blue.png", ROOTURL + util.track(command)) .setFooter("VainSocial" + (PREVIEW? " preview":""), ROOTURL + "images/brands/logo-blue.png") -- cgit v1.3.1