feat: quote #42

Merged
Anri merged 16 commits from feat/citation into main 2022-07-27 13:00:24 +02:00
Showing only changes of commit af527042a6 - Show all commits

View file

@ -80,7 +80,9 @@ export default async (message: Message, client: Client) => {
).filter(Boolean); ).filter(Boolean);
const loc = getLocale(client, client.config.default_lang); const loc = getLocale(client, client.config.default_lang);
messages.map(quoted_post => {
// Remove duplicates
[...new Set(messages)].map(quoted_post => {
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setColor('#2f3136') .setColor('#2f3136')
.setAuthor({ .setAuthor({