Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Add 51 messageDelete logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Ray committed Oct 21, 2018
1 parent ae49e0c commit 9319f6f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions events/messageDelete.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const Discord = require('discord.js');
module.exports = async (client, message, member, guild) => { //eslint-disable-line no-unused-vars
const memberName = message.member.user.tag;
const memberID = message.member.id;
const guildName = message.guild.name;
const guildID = message.guild.id;
const content = message.content;
const createdAt = message.createdAt;
const channelName = message.channel.name;
const channelID = message.channel.id;

const embed = new Discord.RichEmbed()
.setTitle('Message Deletion Event')
.setDescription(`**CONTENT**\n\n${content}`)
.addField('User', `${memberName} \`(${memberID})\``, true)
.addField('Guild', `${guildName} \`(${guildID})\``, true)
.addField('Channel', `${channelName} \`(${channelID})\``, true)
.addField('Created At', createdAt, true)
.setFooter(client.user.username, client.user.avatarURL)
.setTimestamp();
client.channels.get('503373884251308042').send(embed);


};

0 comments on commit 9319f6f

Please sign in to comment.