Add /ban-role moderation command and improve module loading

This commit is contained in:
2026-09-27 01:04:44 +02:00
parent 65a281dbcb
commit a7f8263931
13 changed files with 959 additions and 56 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ module.exports = {
category: 'Utility',
async execute(interaction) {
const commandDetails = interaction.client.commands
.map(cmd => ({
.map((cmd) => ({
name: cmd.data.name,
description: cmd.data.description,
category: cmd.category ?? 'Other',
@@ -26,7 +26,7 @@ module.exports = {
.map((category) => ({
name: category,
value: grouped[category]
.map(command => `• **/${command.name}** — ${command.description}`)
.map((command) => `- **/${command.name}**: ${command.description}`)
.join('\n'),
}));