ok that alot

This commit is contained in:
NoLogicAlan committed 2026-05-11 22:24:08 +03:00
1 parent df1a783fde
commit 5f33ee231d
17 files changed
+64 -47

No files matched your search

+4 -8
View File
@@ -1,6 +1,4 @@
import { CommandBuilder } from "../src/CommandHandler.mjs";
import { EmbedBuilder } from "@fluxerjs/core";
import { getGlobalColor } from "../src/MessageHandler.mjs";
export const command = new CommandBuilder()
.setName("remove")
@@ -14,10 +12,8 @@ export const command = new CommandBuilder()
export async function run(message, data) {
const p = await this.getPlayer(message, false, false, false);
if (!p) return;
const res = p.remove(data.options[0].value - 1);
const embed = new EmbedBuilder()
.setColor(getGlobalColor())
.setDescription(res)
;
message.reply({ embeds: [embed] });
const index = data.get("index")?.value;
if (index == null) return message.reply("Please provide a valid queue position.");
const res = p.remove(index - 1);
message.replyEmbed(res);
}