blob: c5d31e9f2b84ecf6b030d54bdbb0217e55fb3127 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { Command, CommandOptions } from 'discord-akairo';
import { APIApplicationCommandOption } from 'discord-api-types';
import { BotClient } from './BotClient';
export interface BotCommandOptions extends CommandOptions {
slashCommandOptions?: APIApplicationCommandOption[];
description: {
content: string;
usage: string;
examples: string[];
};
}
export class BotCommand extends Command {
public client: BotClient;
constructor(id: string, options?: BotCommandOptions) {
super(id, options);
this.options = options;
}
}
|