import { Suspense } from 'react'; import { CommandsManager } from '@/components/modules/commands-manager'; import { listGuildChannelsForDashboard, listGuildRolesForDashboard } from '@/lib/discord-guild-resources'; import { getLocale, t } from '@/lib/i18n'; import { getCommandGlobalRules } from '@/lib/module-configs/command-global-rules'; import { listCommandOverridesDashboard } from '@/lib/module-configs/commands'; interface CommandsPageProps { params: Promise<{ guildId: string }>; } export default async function CommandsPage({ params }: CommandsPageProps) { const { guildId } = await params; const [locale, commands, globalRules, channels, roles] = await Promise.all([ getLocale(), listCommandOverridesDashboard(guildId), getCommandGlobalRules(guildId), listGuildChannelsForDashboard(guildId).catch(() => []), listGuildRolesForDashboard(guildId).catch(() => []) ]); return (
{t(locale, 'modulePages.commands.description')}