Fix MKT for link to wallpaper

This commit is contained in:
loicbersier 2020-02-21 15:17:07 +01:00
parent 4317ed8e56
commit 1338408698

View file

@ -37,7 +37,7 @@ class wallpaperCommand extends Command {
.setColor(message.member.displayHexColor) .setColor(message.member.displayHexColor)
.setTitle('Bing wallpaper of the day') .setTitle('Bing wallpaper of the day')
.addField('Copyright', `[${res.copyright}](${res.copyright_link})`) .addField('Copyright', `[${res.copyright}](${res.copyright_link})`)
.setDescription('[1366](https://bing.biturl.top/?resolution=1366&format=image&mkt=en-US) | [1920](https://bing.biturl.top/?resolution=1920&format=image&mkt=en-US)') .setDescription(`[1366](https://bing.biturl.top/?resolution=1366&format=image&mkt=${mkt}) | [1920](https://bing.biturl.top/?resolution=1920&format=image&mkt=${mkt})`)
.setImage(res.url); .setImage(res.url);
return message.channel.send(wallpaperEmbed); return message.channel.send(wallpaperEmbed);