WIP add support for filters other than ffmpeg

This commit is contained in:
Marius Begby committed 2023-09-05 13:36:31 +02:00
1 parent 04dd7a7218
commit af6bdd4da8
2 files changed
+50 -5

No files matched your search

+4 -3
View File
@@ -6,7 +6,8 @@ import {
Interaction,
Message,
MessageComponentInteraction,
SlashCommandBuilder
SlashCommandBuilder,
SlashCommandSubcommandsOnlyBuilder
} from 'discord.js';
import { Logger } from 'pino';
import loggerModule from '../services/logger';
@@ -43,7 +44,7 @@ abstract class BaseInteraction {
}
export abstract class BaseSlashCommandInteraction extends BaseInteraction {
data: Omit<SlashCommandBuilder, 'addSubcommand' | 'addSubcommandGroup'>;
data: Omit<SlashCommandBuilder, 'addSubcommand' | 'addSubcommandGroup'> | SlashCommandSubcommandsOnlyBuilder;
isSystemCommand: boolean;
isNew: boolean;
isBeta: boolean;
@@ -52,7 +53,7 @@ export abstract class BaseSlashCommandInteraction extends BaseInteraction {
name: string;
constructor(
data: Omit<SlashCommandBuilder, 'addSubcommand' | 'addSubcommandGroup'>,
data: Omit<SlashCommandBuilder, 'addSubcommand' | 'addSubcommandGroup'> | SlashCommandSubcommandsOnlyBuilder,
isSystemCommand: boolean = false,
isNew: boolean = false,
isBeta: boolean = false