|
|
|
@ -79,7 +79,9 @@ export const Logger = {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async log(log: LoggerOptions): Promise<void> {
|
|
|
|
async log(log: LoggerOptions): Promise<void> {
|
|
|
|
if (!await isLogging(log.hidden.guild, log.meta.calculateType)) return;
|
|
|
|
if (!await isLogging(log.hidden.guild, log.meta.calculateType)) return;
|
|
|
|
|
|
|
|
console.log(log.hidden.guild)
|
|
|
|
const config = await client.database.guilds.read(log.hidden.guild);
|
|
|
|
const config = await client.database.guilds.read(log.hidden.guild);
|
|
|
|
|
|
|
|
console.log(config.logging.logs.channel)
|
|
|
|
if (config.logging.logs.channel) {
|
|
|
|
if (config.logging.logs.channel) {
|
|
|
|
const channel = (await client.channels.fetch(config.logging.logs.channel)) as Discord.TextChannel | null;
|
|
|
|
const channel = (await client.channels.fetch(config.logging.logs.channel)) as Discord.TextChannel | null;
|
|
|
|
const description: Record<string, string> = {};
|
|
|
|
const description: Record<string, string> = {};
|
|
|
|
|