Updated Command Types

This commit is contained in:
Ahmad 2025-02-28 23:23:39 -05:00
parent d89d13b31b
commit 6c523bbeba
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
11 changed files with 37 additions and 87 deletions

View file

@ -1,6 +1,5 @@
import {
SlashCommandBuilder,
CommandInteraction,
EmbedBuilder,
ButtonBuilder,
ActionRowBuilder,
@ -9,12 +8,9 @@ import {
APIEmbed,
JSONEncodable,
} from 'discord.js';
import { getAllMembers } from '../../db/db.js';
interface Command {
data: Omit<SlashCommandBuilder, 'addSubcommand' | 'addSubcommandGroup'>;
execute: (interaction: CommandInteraction) => Promise<void>;
}
import { getAllMembers } from '../../db/db.js';
import { Command } from '../../types/CommandTypes.js';
const command: Command = {
data: new SlashCommandBuilder()