mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-31 23:01:04 +00:00
fix(bots/discord/commands): refactor and add checks
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user