Skip to content
Snippets Groups Projects
Commit 42edff94 authored by Reviath's avatar Reviath
Browse files

Update message delete and message update events.

parent 8133b665
Branches
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ module.exports = { ...@@ -22,7 +22,7 @@ module.exports = {
}; };
const channel = message.guild.channels.cache.get(channelvariable); const channel = message.guild.channels.cache.get(channelvariable);
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setAuthor(`Message Deleted!`) .setTitle(`Message Deleted!`)
.addField(`Message content:`,`${message.content}`) .addField(`Message content:`,`${message.content}`)
.addField(`Channel:`,`<#${message.channel.id}> (\`${message.channel.name}\`)`) .addField(`Channel:`,`<#${message.channel.id}> (\`${message.channel.name}\`)`)
.addField(`User:`, `${message.author} (${message.author.tag})`) .addField(`User:`, `${message.author} (${message.author.tag})`)
......
...@@ -25,7 +25,7 @@ module.exports = { ...@@ -25,7 +25,7 @@ module.exports = {
}; };
const channel = oldMessage.guild.channels.cache.get(channelvariable); const channel = oldMessage.guild.channels.cache.get(channelvariable);
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setAuthor(`Message Edited!`) .setTitle(`Message Edited!`)
.addField(`Pre:`,`${oldMessage.content}`) .addField(`Pre:`,`${oldMessage.content}`)
.addField(`Post:`,`${newMessage.content}`) .addField(`Post:`,`${newMessage.content}`)
.addField(`Channel:`,`<#${oldMessage.channel.id}> (\`${newMessage.channel.name}\`)`) .addField(`Channel:`,`<#${oldMessage.channel.id}> (\`${newMessage.channel.name}\`)`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment