fix for description issue

pull/1/head
Matthew 2024-04-05 20:13:22 -04:00
parent 1e2b777672
commit 0811bfbde9
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 1 additions and 1 deletions

View File

@ -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] });