This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matthew Ray
committed
Oct 21, 2018
1 parent
ae49e0c
commit 9319f6f
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
|
||
}; |