diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-10 19:33:09 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-10 19:33:09 +0200 |
| commit | 2fad80a5350b5c9a1eeaa5062996b63cabace690 (patch) | |
| tree | ad77c21fd92d61f5de078272c79c9dc0e1178879 | |
| parent | d158b9dabfc8b6c9a6c13e3307be455957b95a98 (diff) | |
| download | discordbot-2fad80a5350b5c9a1eeaa5062996b63cabace690.tar.gz discordbot-2fad80a5350b5c9a1eeaa5062996b63cabace690.zip | |
encode embed urls, fixes players with spaces
| -rw-r--r-- | util.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |
