mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-25 23:15:38 -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>`}
|
||||
)
|
||||
const attachments:string[] = [];
|
||||
msg.attachments.forEach(x=>attachments.push(x.url));
|
||||
(client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [embed], files: attachments})
|
||||
for (const attachment of msg.attachments.values()) attachments.push(attachment.proxyURL);
|
||||
(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