jukebox-vibe/web/src/types.ts
Daniel 4875747dc5 Feat: Show member count in channel dropdown
Add voice channel member count (non-bot users) to channel API
response and display it in the dropdown button and menu options.
Shows (N) suffix when users are in a channel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 20:04:27 +01:00

44 lines
812 B
TypeScript

export type Sound = {
fileName: string;
name: string;
folder?: string;
relativePath?: string;
isRecent?: boolean;
badges?: string[];
};
export type SoundsResponse = {
items: Sound[];
total: number;
folders: Array<{ key: string; name: string; count: number }>;
categories?: Category[];
fileCategories?: Record<string, string[]>;
};
export type VoiceChannelInfo = {
guildId: string;
guildName: string;
channelId: string;
channelName: string;
members?: number;
selected?: boolean;
};
export type Category = { id: string; name: string; color?: string; sort?: number };
export type AnalyticsItem = {
name: string;
relativePath: string;
count: number;
};
export type AnalyticsResponse = {
totalSounds: number;
totalPlays: number;
mostPlayed: AnalyticsItem[];
};