mirror of
https://github.com/SrIzan10/Recluse-Bot.git
synced 2026-05-01 10:55:24 +00:00
Create BaseEmbed.js
This commit is contained in:
15
module/BaseEmbed.js
Normal file
15
module/BaseEmbed.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
function BaseEmbed(message) {
|
||||
if (!message) {
|
||||
throw Error("'message' must be passed down as param! (BaseEmbed)");
|
||||
}
|
||||
|
||||
const avatar = message.author.displayAvatarURL({ dynamic: true });
|
||||
return new MessageEmbed()
|
||||
.setFooter(message.author.username, avatar)
|
||||
.setColor("#7289DA")
|
||||
.setTimestamp();
|
||||
}
|
||||
|
||||
module.exports = BaseEmbed;
|
||||
Reference in New Issue
Block a user