Skip to content

Commit

Permalink
add permissions to the command
Browse files Browse the repository at this point in the history
  • Loading branch information
benw202 committed Jan 21, 2024
1 parent 06a0e75 commit 05b3518
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/moderation/commandTable.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { ApplicationCommandOptionType, ApplicationCommandType, CommandInteraction } from 'discord.js';
import fs from 'fs';
import { slashCommand, slashCommandStructure, Logger } from '../../lib';
import { slashCommand, slashCommandStructure, Logger, constantsConfig } from '../../lib';

const data = slashCommandStructure({
name: 'generate_command_table',
description: 'Generates the command table.',
type: ApplicationCommandType.ChatInput,
default_member_permissions: constantsConfig.commandPermission.MANAGE_SERVER, //Overrides need to be added for admin, moderator bot developer and docs team roles
dm_permission: false,
});

export default slashCommand(data, async ({ interaction }: { interaction: CommandInteraction }) => {
Expand Down

0 comments on commit 05b3518

Please sign in to comment.