Hyperfire - I'm having an issue trying to make a c...

I'm having an issue trying to make a custom command structure
H
Hyper524d ago
so
@ApplyOptions<ClubCommand>({
description: 'Get the latency of the bot.',
preconditions: ['StaffOnly'],
detailedDescription: '`ping`'
})
@ApplyOptions<ClubCommand>({
description: 'Get the latency of the bot.',
preconditions: ['StaffOnly'],
detailedDescription: '`ping`'
})
preconditions part is showing Type 'string[]' is missing the following properties from type 'PreconditionContainerArray': mode, runCondition, add, append, and 5 more.
import { Command, CommandOptions, PieceContext } from '@sapphire/framework';

interface ClubCommandOptions extends CommandOptions {
[key: string]: any
}

export abstract class ClubCommand extends Command {
public constructor(context: PieceContext, options: ClubCommandOptions) {
super(context, options);
}
}
import { Command, CommandOptions, PieceContext } from '@sapphire/framework';

interface ClubCommandOptions extends CommandOptions {
[key: string]: any
}

export abstract class ClubCommand extends Command {
public constructor(context: PieceContext, options: ClubCommandOptions) {
super(context, options);
}
}
Never mind, I figured it all out
Want results from more Discord servers?
Add your server
More Posts
CEO | RJP Development - how do u make a programmig...how do u make a programmig language like saphire?Lioness100 - Does `LazyPaginatedMessage` automatic...Does `LazyPaginatedMessage` automatically cache embed pages or is that something the user has to do BigBrainAFK - So i need to use the V4 PR builds of...So i need to use the V4 PR builds of sapphire as I sadly require threads to be supported by my bot. BlueSky - Just for verification, we are allowed to...Just for verification, we are allowed to host sapphire ourselves, right? and is the dashboard includFeralheart - Is the `command.enabled` works togeth...Is the `command.enabled` works together with slashies?KIJ - does sapphire support v14?does sapphire support v14?Frozn - whenever i try to run my bot i keep gettin...whenever i try to run my bot i keep getting a ton of errors like this, does anyone know how to fix tjeelzzz - is there any way to export multiple thi...is there any way to export multiple things from a command / listener's file? like can i name the exMcDefault - Hello y'all Im trying to follow the c...Hello y'all> Im trying to follow the create basic slash cmd guide, but the example code is giving anchmod - does sapphire support djs 14?does sapphire support djs 14?RuiNtD - How to ensure removed application command...How to ensure removed commands are unregistered?WhacK - I upgraded my existing sapphire bot to typ...I upgraded my existing sapphire bot to typescript and altered some things. My commands are not beingArarou - Is this smth fixable? It's never done thi...Is this smth fixable? It's never done this before and I don't know whats causing it.Fractune - Hello, I'd like to know why my `if` jum...Hello, I'd like to know why my `if` jumps straight to `else` while `!isNaN(parseInt(tags.slice(-1)[0