[Fixed] Message editing log sending multiple

when i edit a message i get multiple logs
code:

client.on(‘messageUpdate’, message => {
if(!message.partial) {
const channel = client.channels.get(‘724209412700504105’);
if(channel) {
const embed = new RichEmbed()
.setTitle(‘Edited Message’)
.addField(‘Author’, ${message.author.tag} (${message.author.id}), true)
.addField(‘Channel’, ${message.channel.name} (${message.channel.id}), true)
.setDescription(message.content)
.setTimestamp();
return channel.send(embed);
}
}
});

bot was sending its own message update log…
i solved that problem by that code:

if(message.author.bot) return;

1 Like

Marked this as “fixed”, glad you got it working!