mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: annotated util validation
This commit is contained in:
1 parent
89f8e2d0d1
commit
d38ed18842
1 file changed
+51
@@ -1,5 +1,7 @@
|
|||||||
import { Player } from 'discord-player';
|
import { Player } from 'discord-player';
|
||||||
import { ExtendedClient } from './clientTypes';
|
import { ExtendedClient } from './clientTypes';
|
||||||
|
import { ChatInputCommandInteraction } from 'discord.js';
|
||||||
|
import { GuildQueue } from 'discord-player';
|
||||||
|
|
||||||
export interface RegisterEventListenersParams {
|
export interface RegisterEventListenersParams {
|
||||||
client: ExtendedClient;
|
client: ExtendedClient;
|
||||||
@@ -11,3 +13,52 @@ export interface RegisterClientCommandsParams {
|
|||||||
client: ExtendedClient;
|
client: ExtendedClient;
|
||||||
executionId: string;
|
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;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user