From 28647b3869ea047a37fc676aeda1067e25e654d5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 6 Apr 2021 16:47:09 -0400 Subject: [PATCH] Fix --- commands/events/covid-19.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/events/covid-19.js b/commands/events/covid-19.js index b56ae83c..d932b048 100644 --- a/commands/events/covid-19.js +++ b/commands/events/covid-19.js @@ -42,7 +42,7 @@ module.exports = class Covid19Command extends Command { .setTitle(`Stats for ${country === 'all' ? 'The World' : data.country}`) .setURL(country === 'all' ? 'https://www.worldometers.info/coronavirus/' - : `https://www.worldometers.info/coronavirus/country/${slug}/`) + : `https://www.worldometers.info/coronavirus/country/${encodeURIComponent(slug)}/`) .setThumbnail(country === 'all' ? null : data.countryInfo.flag || null) .setFooter('Last Updated') .setTimestamp(data.updated)