Feature/81 slash command support (#192)
* Update discord.js * Migrate to slash commands * Clean up imports * Update permissions * Fix guild-specific commands not showing up * Fix changes requested
This commit is contained in:
parent
0465697b87
commit
ed8f5927c8
52 changed files with 1469 additions and 1850 deletions
|
@ -1,23 +1,9 @@
|
|||
import { CommandResponse } from "../constants/CommandResponse";
|
||||
import { ICommandContext } from "../contracts/ICommandContext";
|
||||
import { CommandInteraction } from "discord.js";
|
||||
|
||||
export class Command {
|
||||
public Roles: string[];
|
||||
public Category?: string;
|
||||
|
||||
constructor() {
|
||||
this.Roles = [];
|
||||
}
|
||||
|
||||
public precheck(context: ICommandContext): CommandResponse {
|
||||
return CommandResponse.Ok;
|
||||
}
|
||||
|
||||
public async precheckAsync(context: ICommandContext): Promise<CommandResponse> {
|
||||
return CommandResponse.Ok;
|
||||
}
|
||||
|
||||
public execute(context: ICommandContext) {
|
||||
public CommandBuilder: any;
|
||||
|
||||
public execute(interaction: CommandInteraction) {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue