mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 00:10:58 -05:00
cant reproduce it but removed '?' for now.
This commit is contained in:
parent
f1a47f0505
commit
2b653f8260
@ -7,7 +7,7 @@ export default {
|
||||
if (!client.config.botSwitches.logs) return;
|
||||
let msgArray: Array<string> = [];
|
||||
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]})
|
||||
|
Loading…
Reference in New Issue
Block a user