From d38ed188429ab7e532c8bdd261ebb3dc0ddbf8d9 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sun, 27 Aug 2023 01:36:21 +0200 Subject: [PATCH] fix: annotated util validation --- src/types/utilTypes.ts | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/src/types/utilTypes.ts b/src/types/utilTypes.ts index f843aa9..e71613b 100644 --- a/src/types/utilTypes.ts +++ b/src/types/utilTypes.ts @@ -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; +}