mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 00:10:58 -05:00
Replace forEach with for of
This commit is contained in:
parent
9533d7a514
commit
5978d33726
@ -14,7 +14,7 @@ export default class MessageDelete {
|
|||||||
{name: 'Sent at', value: `<t:${Math.round(msg.createdTimestamp/1000)}>\n<t:${Math.round(msg.createdTimestamp/1000)}:R>`}
|
{name: 'Sent at', value: `<t:${Math.round(msg.createdTimestamp/1000)}>\n<t:${Math.round(msg.createdTimestamp/1000)}:R>`}
|
||||||
)
|
)
|
||||||
const attachments:string[] = [];
|
const attachments:string[] = [];
|
||||||
msg.attachments.forEach(x=>attachments.push(x.url));
|
for (const attachment of msg.attachments.values()) attachments.push(attachment.proxyURL);
|
||||||
(client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [embed], files: attachments})
|
(client.channels.cache.get(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [embed], files: attachments});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user