Create series command #190
3 changed files with 22 additions and 23 deletions
|
@ -1,7 +1,6 @@
|
||||||
import { CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js";
|
import { CommandInteraction, SlashCommandBuilder } from "discord.js";
|
||||||
import { Command } from "../type/command";
|
import { Command } from "../type/command";
|
||||||
import { CoreClient } from "../client/client";
|
import { CoreClient } from "../client/client";
|
||||||
import EmbedColours from "../constants/EmbedColours";
|
|
||||||
import AppLogger from "../client/appLogger";
|
import AppLogger from "../client/appLogger";
|
||||||
import SeriesHelper from "../helpers/SeriesHelper";
|
import SeriesHelper from "../helpers/SeriesHelper";
|
||||||
|
|
||||||
|
@ -24,7 +23,7 @@ export default class Series extends Command {
|
||||||
.addSubcommand(x =>
|
.addSubcommand(x =>
|
||||||
x
|
x
|
||||||
.setName("list")
|
.setName("list")
|
||||||
.setDescription("List all series"));
|
.setDescription("List all series")) as SlashCommandBuilder;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async execute(interaction: CommandInteraction) {
|
public override async execute(interaction: CommandInteraction) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { CommandInteraction } from "discord.js";
|
import { CommandInteraction, SlashCommandBuilder } from "discord.js";
|
||||||
|
|
||||||
export abstract class Command {
|
export abstract class Command {
|
||||||
public CommandBuilder: any;
|
public CommandBuilder: Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">;
|
||||||
|
|
||||||
abstract execute(interaction: CommandInteraction): Promise<void>;
|
abstract execute(interaction: CommandInteraction): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue