add Request by footer for tags
This commit is contained in:
parent
6785418c3c
commit
4005b1b119
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||
}),
|
||||
]
|
||||
: [],
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue