mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
feat: Add new /history command to show previously played tracks
This commit is contained in:
1 parent
902f890bcd
commit
bf461c2f26
4 files changed
+215
-2
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import config from 'config';
|
||||
import { GuildQueue, PlayerTimestamp, Track } from 'discord-player';
|
||||
import { GuildQueue, GuildQueueHistory, PlayerTimestamp, Track } from 'discord-player';
|
||||
import {
|
||||
ApplicationCommandOptionChoiceData,
|
||||
AutocompleteInteraction,
|
||||
@@ -114,7 +114,10 @@ abstract class BaseInteraction {
|
||||
return thumbnailUrl;
|
||||
}
|
||||
|
||||
protected getFooterDisplayPageInfo(interaction: ChatInputCommandInteraction, queue: GuildQueue): EmbedFooterData {
|
||||
protected getFooterDisplayPageInfo(
|
||||
interaction: ChatInputCommandInteraction,
|
||||
queue: GuildQueue | GuildQueueHistory
|
||||
): EmbedFooterData {
|
||||
if (!queue.tracks.data.length) {
|
||||
return { text: 'Page 1 of 1 (0 tracks)' };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user