remove duplicates
This commit is contained in:
parent
65559753b7
commit
af527042a6
1 changed files with 3 additions and 1 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue