2024-03-24 19:56:03 +01:00
|
|
|
type GuildConfig = {
|
|
|
|
id: string,
|
|
|
|
voiceChannel: string,
|
|
|
|
textOutput?: string,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type MusicPlayerOptions = {
|
|
|
|
library: string,
|
|
|
|
guilds: GuildConfig[]
|
2024-03-25 11:19:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export type MusicIndexEntry = {
|
2024-03-27 17:14:37 +01:00
|
|
|
id: number,
|
|
|
|
artist: string,
|
2024-03-25 11:19:47 +01:00
|
|
|
title: string,
|
|
|
|
album?: string,
|
|
|
|
year?: number,
|
2024-03-27 17:14:37 +01:00
|
|
|
genre: string[]
|
2024-07-24 17:07:13 +02:00
|
|
|
file: string,
|
|
|
|
temp?: boolean // File is deleted after playing
|
2024-03-29 15:09:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export type MusicStatsEntry = {
|
|
|
|
[key: string]: string | number,
|
|
|
|
name: string,
|
|
|
|
plays: number,
|
|
|
|
skips: number,
|
2024-03-25 20:22:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export type MusicQuery = {
|
|
|
|
title?: string
|
|
|
|
artist?: string,
|
2024-03-27 17:14:37 +01:00
|
|
|
keyword?: string,
|
|
|
|
id?: number
|
2024-03-25 20:22:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export type QueueOrder = {
|
|
|
|
artist?: string,
|
2024-03-27 17:14:37 +01:00
|
|
|
title?: string,
|
|
|
|
id?: number
|
2024-03-24 19:56:03 +01:00
|
|
|
}
|