aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/message
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners/message')
-rw-r--r--src/listeners/message/directMessage.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listeners/message/directMessage.ts b/src/listeners/message/directMessage.ts
index c333e22..df4d578 100644
--- a/src/listeners/message/directMessage.ts
+++ b/src/listeners/message/directMessage.ts
@@ -37,7 +37,7 @@ export default class DirectMessageListener extends BushListener {
if (message.attachments.filter((a) => typeof a.size == 'number').size == 1) {
dmLogEmbed.setImage(message.attachments.filter((a) => typeof a.size == 'number').first()!.proxyURL);
} else if (message.attachments.size > 0) {
- dmLogEmbed.addField({ name: 'Attachments', value: message.attachments.map((a) => a.proxyURL).join('\n') });
+ dmLogEmbed.addFields({ name: 'Attachments', value: message.attachments.map((a) => a.proxyURL).join('\n') });
}
const dmChannel = await util.getConfigChannel('dm');
await dmChannel.send({ embeds: [dmLogEmbed] });