mirror of
https://github.com/SrIzan10/Recluse-Bot.git
synced 2026-05-01 10:55:24 +00:00
16 lines
396 B
JavaScript
16 lines
396 B
JavaScript
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;
|