no comment still working on it

This commit is contained in:
NoLogicAlan committed 2026-08-28 23:51:20 +03:00
1 parent cea0014e18
commit e11fca151c
87 files changed
+5710 -10182

No files matched your search

+9 -4
View File
@@ -1,12 +1,16 @@
/**
* @file clear command — Remove all songs from the queue
* @module commands/clear
* @description Remove all songs from the playback queue.
*/
import { CommandBuilder } from "../src/CommandHandler.mjs";
import { EmbedBuilder } from "@fluxerjs/core";
import { getGlobalColor } from "../src/MessageHandler.mjs";
/**
* @type {CommandBuilder}
* @description Command definition for the clear command.
*/
export const command = new CommandBuilder()
.setName("clear")
.setDescription("Remove all songs from the queue.", "commands.clear")
@@ -14,9 +18,10 @@ export const command = new CommandBuilder()
.setCategory("music");
/**
* Execute the clear command.
* @param {import("../src/MessageHandler.mjs").Message} msg - The incoming message
* @param {Map<string, {value: *}>} data - Slash-command options map
* Run handler for the clear command.
* Clears the entire queue and sends a confirmation embed.
*
* @param {object} msg - The command message wrapper.
* @returns {Promise<void>}
*/
export async function run(msg) {