Artivain/artibot

View on GitHub
src/embed.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Colors, EmbedBuilder, EmbedData } from "discord.js";
import { ArtibotConfig } from "./config.js";

/** Prepared EmbedBuilder with {@link ArtibotConfig Artibot config} */
export class Embed extends EmbedBuilder {
    constructor(config: ArtibotConfig, data?: EmbedData) {
        super(data);
        this.setColor(config.embedColor || Colors.Default);
        this.setFooter({
            text: config.botName || "Artibot",
            iconURL: config.botIcon
        });
        this.setTimestamp();
    }
}

/** @ignore */
export default Embed;