fix: annotated util validation

This commit is contained in:
Marius Begby committed 2023-08-27 01:36:21 +02:00
1 parent 89f8e2d0d1
commit d38ed18842
1 file changed
+51
+51
View File
@@ -1,5 +1,7 @@
import { Player } from 'discord-player';
import { ExtendedClient } from './clientTypes';
import { ChatInputCommandInteraction } from 'discord.js';
import { GuildQueue } from 'discord-player';
export interface RegisterEventListenersParams {
client: ExtendedClient;
@@ -11,3 +13,52 @@ export interface RegisterClientCommandsParams {
client: ExtendedClient;
executionId: string;
}
export interface NotInVoiceChannelParams {
interaction: ChatInputCommandInteraction;
executionId: string;
}
export interface NotInSameVoiceChannelParams {
interaction: ChatInputCommandInteraction;
queue: GuildQueue;
executionId: string;
}
export interface NotValidGuildIdParams {
interaction: ChatInputCommandInteraction;
executionId: string;
}
export interface TransformQueryParams {
query: string;
executionId: string;
}
export interface QueueDoesNotExistParams {
interaction: ChatInputCommandInteraction;
queue: GuildQueue;
executionId: string;
}
export interface QueueNoCurrentTrackParams {
interaction: ChatInputCommandInteraction;
queue: GuildQueue;
executionId: string;
}
export interface QueueIsEmptyParams {
interaction: ChatInputCommandInteraction;
queue: GuildQueue;
executionId: string;
}
export interface CannotJoinVoiceOrTalkParams {
interaction: ChatInputCommandInteraction;
executionId: string;
}
export interface CannotSendMessageInChannelParams {
interaction: ChatInputCommandInteraction;
executionId: string;
}