From 0811bfbde9f8bce95cbdff3bac9e8ffe61faa3cc Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 5 Apr 2024 20:13:22 -0400 Subject: [PATCH] fix for description issue --- discord/commands/Whois.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/commands/Whois.ts b/discord/commands/Whois.ts index b7d3174..e182799 100644 --- a/discord/commands/Whois.ts +++ b/discord/commands/Whois.ts @@ -73,7 +73,7 @@ export default class Whois extends DiscordInteractionCommand { } } embed.setColor(guildMember.displayColor); - embed.setDescription(embedDescription); + if (embedDescription?.length > 0) embed.setDescription(embedDescription); embed.setFooter({ text: `Discord ID: ${guildMember.id}${databaseMember ? `Internal ID: ${databaseMember?._id}` : ''}` }); return await interaction.editReply({ embeds: [embed] });