This commit is contained in:
NoLogicAlan committed 2026-09-16 02:15:56 +03:00
1 parent 8a8925653c
commit 3a72e46775
12 files changed
+77 -33

No files matched your search

+6
View File
@@ -42,6 +42,12 @@ export async function run(msg, data) {
return msg.reply({ embeds: [new EmbedBuilder().setColor(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.paused"))] });
}
const current = p.queue.getCurrent();
if (current?.type === "radio" || current?.isLive || p._getTrackDurationMs(current) === 0) {
return msg.reply({ embeds: [new EmbedBuilder().setColor(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.live"))] });
}
let seekMs = Utils.parseDuration(positionInput);
if (!seekMs || seekMs < 0) {
return msg.reply({ embeds: [new EmbedBuilder().setColor(ERROR_COLOR).setDescription(this.t(msg, "responses.seek.invalidFormat"))] });