From 4005b1b1196cb6d167ac5cd9e8507698b8f5903e Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Thu, 25 Aug 2022 20:39:48 +0800 Subject: [PATCH] add Request by footer for tags --- src/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1be364e..d4d941c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -158,7 +158,14 @@ client.on('interactionCreate', async (interaction) => { await interaction.reply({ content: tag.text ? `**${tag.name}**\n\n` + tag.text : tag.text, - embeds: tag.embed ? [new EmbedBuilder(tag.embed)] : [], + embeds: tag.embed + ? [ + new EmbedBuilder(tag.embed).setFooter({ + text: `Requested by ${interaction.user.tag}`, + iconURL: interaction.user.avatarURL() ?? undefined, + }), + ] + : [], }); } });