"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderLoggingModule = renderLoggingModule; const api_js_1 = require("../../services/api.js"); const toast_js_1 = require("../../ui/toast.js"); async function renderLoggingModule(guildId) { const container = document.getElementById('module-logging'); if (!container) return; container.innerHTML = '
Lade Logging...
'; try { const data = await api_js_1.api.settings(guildId); const cfg = data?.settings?.loggingConfig || data?.loggingConfig || {}; container.innerHTML = `Channel: ${cfg.logChannelId || '-'}
Join/Leave: ${cfg.categories?.joinLeave ? 'an' : 'aus'}
System: ${cfg.categories?.system ? 'an' : 'aus'}
`; } catch (err) { console.error(err); container.innerHTML = '