import { api } from '../../services/api.js'; import { showToast } from '../../ui/toast.js'; export async function renderLoggingModule(guildId) { const container = document.getElementById('module-logging'); if (!container) return; container.innerHTML = '
Lade Logging...
'; try { const data = await 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 = '