import { Colors, EmbedBuilder, GuildMember } from "discord.js"; import { PrismaClient } from "@prisma/client"; import { BaseEntry, BaseGuildCache } from "../"; type LogData = { member?: GuildMember; title: string; description: string | string[]; command?: string; color?: (typeof Colors)[keyof typeof Colors]; embeds?: EmbedBuilder[]; }; export default class LogManager
> { private readonly cache; constructor(cache: BaseGuildCache
);
/**
* Log the data to the log channel if the `log_channel_id` is set.
*
* @param data Payload to log to the log channel if it is set
*/
log(data: LogData): Promise