mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-05-10 10:43:06 +00:00
Updated Command Types
This commit is contained in:
parent
d89d13b31b
commit
6c523bbeba
11 changed files with 37 additions and 87 deletions
|
@ -1,19 +1,14 @@
|
|||
import {
|
||||
SlashCommandBuilder,
|
||||
CommandInteraction,
|
||||
EmbedBuilder,
|
||||
SlashCommandOptionsOnlyBuilder,
|
||||
GuildMember,
|
||||
PermissionsBitField,
|
||||
} from 'discord.js';
|
||||
|
||||
import { getMember } from '../../db/db.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('userinfo')
|
||||
.setDescription('Provides information about the specified user.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue