Ancho
Ancho
DIAdiscord.js - Imagine a boo! 👻
Created by Ancho on 6/24/2024 in #djs-questions
getString() issue
import { ApplicationCommandOptionType, CommandInteraction } from "discord.js";

export interface CommandOptions {
name: string;
description: string;
type: ApplicationCommandOptionType;
required?: boolean;
}

export interface Command {
name: string;
description: string;
options?: CommandOptions[];
execute(interactionCreate: CommandInteraction): Promise<void>;
}
import { ApplicationCommandOptionType, CommandInteraction } from "discord.js";

export interface CommandOptions {
name: string;
description: string;
type: ApplicationCommandOptionType;
required?: boolean;
}

export interface Command {
name: string;
description: string;
options?: CommandOptions[];
execute(interactionCreate: CommandInteraction): Promise<void>;
}
This is my whole command interface, that I extend to create any commands
3 replies