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

I'm having an issue trying to make a custom command structure
1 Reply
Hyper
HyperOP2y 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