Stop was advancing the queue, history overwrote the day file, and slash commands often never replied; soundboard clips now mix on top of the current track. Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
518 B
TypeScript
32 lines
518 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 = {
|
|
user?: number | string,
|
|
url?: string,
|
|
}
|
|
|
|
type SoundboardSound = {
|
|
id: string
|
|
description: string
|
|
emoji: string
|
|
path: string
|
|
user: string
|
|
createdAt: number
|
|
}
|
|
|