Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
fix: annotated util validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Aug 26, 2023
1 parent 89f8e2d commit d38ed18
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/types/utilTypes.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
}

0 comments on commit d38ed18

Please sign in to comment.