fix(bots/discord/commands): refactor and add checks

This commit is contained in:
PalmDevs
2024-06-24 20:50:46 +07:00
parent fb01ce5740
commit a2bf3eade9
7 changed files with 78 additions and 68 deletions

View File

@@ -1,5 +1,6 @@
import { SlashCommandBuilder, type TextBasedChannel } from 'discord.js'
import { config } from '$/context'
import type { Command } from '..'
export default {
@@ -16,7 +17,7 @@ export default {
.toJSON(),
memberRequirements: {
roles: ['955220417969262612', '973886585294704640'],
roles: config.moderation?.roles ?? [],
},
global: false,