import type { VoidyClient } from "./VoidyClient"; export class Logger { private logChannelId?: string; constructor(private client: VoidyClient) {} public async send(message: string) { if (!this.logChannelId) return; try { const loggingChannel = this.client.channels.cache.get(this.logChannelId); if (loggingChannel && loggingChannel.isSendable()) { await loggingChannel.send(message); } } catch {} console.log(message); } public setChannelId(id: string) { this.logChannelId = id; } }