Files
dj-spangebob/src/global.d.ts
Patryk Koreń ad87d3fbb8 Add an overlay soundboard and fix playback command bugs.
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>
2026-09-13 17:03:02 +02:00

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
}