41 lines
715 B
TypeScript
41 lines
715 B
TypeScript
type GuildConfig = {
|
|
id: string,
|
|
voiceChannel: string,
|
|
textOutput?: string,
|
|
}
|
|
|
|
export type MusicPlayerOptions = {
|
|
library: string,
|
|
guilds: GuildConfig[]
|
|
}
|
|
|
|
export type MusicIndexEntry = {
|
|
id: number,
|
|
artist: string,
|
|
title: string,
|
|
album?: string,
|
|
year?: number,
|
|
genre: string[]
|
|
file: string,
|
|
temp?: boolean // File is deleted after playing
|
|
}
|
|
|
|
export type MusicStatsEntry = {
|
|
[key: string]: string | number,
|
|
name: string,
|
|
plays: number,
|
|
skips: number,
|
|
}
|
|
|
|
export type MusicQuery = {
|
|
title?: string
|
|
artist?: string,
|
|
keyword?: string,
|
|
id?: number
|
|
}
|
|
|
|
export type QueueOrder = {
|
|
artist?: string,
|
|
title?: string,
|
|
id?: number
|
|
} |