From 6255915728cbbd24708a3b3420daa92edfa3872f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 21 Jan 2021 16:54:00 -0500 Subject: [PATCH] Fix smogon spacing --- commands/pokedex/smogon.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands/pokedex/smogon.js b/commands/pokedex/smogon.js index 6a5f55d4..310d8648 100644 --- a/commands/pokedex/smogon.js +++ b/commands/pokedex/smogon.js @@ -67,6 +67,11 @@ module.exports = class SmogonCommand extends Command { for (const game of fetchGames) { embed.addField(`❯ ${games[game]}`, `[${data.smogonTiers[game].join('/')}](${data.smogonURL(game)})`, true); } + if (fetchGames.length % 3 !== 0 && fetchGames.length > 3) { + for (let i = 0; i > 3 - (fetchGames.length % 3); i++) { + embed.addField('\u200B', '\u200B', true); + } + } return msg.embed(embed); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);