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,17 +1,9 @@
import {
CommandInteraction,
PermissionsBitField,
SlashCommandBuilder,
SlashCommandOptionsOnlyBuilder,
} from 'discord.js';
import { PermissionsBitField, SlashCommandBuilder } from 'discord.js';
import { executeUnban } from '../../util/helpers.js';
import { OptionsCommand } from '../../types/CommandTypes.js';
interface Command {
data: SlashCommandOptionsOnlyBuilder;
execute: (interaction: CommandInteraction) => Promise<void>;
}
const command: Command = {
const command: OptionsCommand = {
data: new SlashCommandBuilder()
.setName('unban')
.setDescription('Unban a user from the server')