From 879435c3e80982405fa4a038abc377a98235db1d Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Thu, 1 Dec 2022 03:02:55 +1100 Subject: [PATCH] cant reproduce it but removed '?' for now. --- src/events/messageDeleteBulk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/messageDeleteBulk.ts b/src/events/messageDeleteBulk.ts index 4df03c2..7e6c006 100644 --- a/src/events/messageDeleteBulk.ts +++ b/src/events/messageDeleteBulk.ts @@ -7,7 +7,7 @@ export default { if (!client.config.botSwitches.logs) return; let msgArray: Array = []; messages.forEach((m)=>{ - msgArray.push(`${m.author?.username}: ${m.content}`); + msgArray.push(`${m.author.username}: ${m.content}`); }); const embed = new client.embed().setColor(client.config.embedColorRed).setTimestamp().setTitle(`${messages.size} messages were purged`).setDescription(`\`\`\`${msgArray.reverse().join('\n')}\`\`\``.slice(0,3900)).addFields({name: 'Channel', value: `<#${(messages.first() as Discord.Message).channel.id}>`}); channel.send({embeds: [embed]})