add Request by footer for tags

This commit is contained in:
Ryan Cao 2022-08-25 20:39:48 +08:00
parent 6785418c3c
commit 4005b1b119
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F

View file

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