diff --git a/src/commands/players.js b/src/commands/players.js index 636245b6..90645c47 100644 --- a/src/commands/players.js +++ b/src/commands/players.js @@ -381,7 +381,7 @@ async function displaySeveralUsers(client, interaction, battlemetricsId, playerI for (const field of fields) { embed.addFields({ name: fieldCounter === 0 ? client.intlGet(interaction.guildId, 'players') : '\u200B', - value: field, + value: field === '' ? '\u200B' : field, inline: true }); fieldCounter += 1; diff --git a/src/discordTools/discordEmbeds.js b/src/discordTools/discordEmbeds.js index d9deb255..a699e4aa 100644 --- a/src/discordTools/discordEmbeds.js +++ b/src/discordTools/discordEmbeds.js @@ -953,7 +953,7 @@ module.exports = { for (const field of fields) { embed.addFields({ name: fieldCounter === 0 ? Client.client.intlGet(guildId, 'players') : '\u200B', - value: field, + value: field === '' ? '\u200B' : field, inline: true }); fieldCounter += 1; diff --git a/src/handlers/battlemetricsHandler.js b/src/handlers/battlemetricsHandler.js index 258cd057..a8542dc0 100644 --- a/src/handlers/battlemetricsHandler.js +++ b/src/handlers/battlemetricsHandler.js @@ -359,7 +359,7 @@ module.exports = { for (const field of fields) { outPutFields.push({ name: '\u200B', - value: field, + value: field === '' ? '\u200B' : field, inline: true }); fieldCounter += 1; @@ -413,7 +413,7 @@ module.exports = { for (const field of fields) { outPutFields.push({ name: '\u200B', - value: field, + value: field === '' ? '\u200B' : field, inline: true }); fieldCounter += 1;