mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +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 { 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;
|
||||
}
|
||||
Reference in new issue
Block a user