23 lines
402 B
TypeScript
23 lines
402 B
TypeScript
type Command = {
|
|
name: string,
|
|
register: () => any,
|
|
execute: (interaction: ChatInputCommandInteraction<CacheType>) => Promise<void>,
|
|
}
|
|
|
|
type AudioFile = {
|
|
url: string
|
|
path: string
|
|
}
|
|
|
|
type Queue = {
|
|
songList: AudioFile[]
|
|
current: AudioFile | null
|
|
loop: AudioFile | null
|
|
}
|
|
|
|
type HistoryObject = {
|
|
interaction: ChatInputCommandInteraction<CacheType>
|
|
url: string
|
|
}
|
|
|