ignore bot messages in prune logs
This commit is contained in:
parent
c914839ebe
commit
64641ab517
@ -241,6 +241,8 @@ class GuildLogger extends Observer {
|
||||
const cutOff = EmbedLimits.fieldValue;// - 3;
|
||||
const fields = [];
|
||||
|
||||
messages = messages.filter((msg) => !msg.author.bot);
|
||||
|
||||
//Compile messages into fields that can be compiled into embeds
|
||||
messageLoop: //Oldest messages first
|
||||
for (const message of messages.array().sort((a, b) => b.createdTimestamp - a.createdTimestamp)) {
|
||||
|
Loading…
Reference in New Issue
Block a user