mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
20 lines
629 B
JavaScript
20 lines
629 B
JavaScript
import { CommandBuilder } from "../src/CommandHandler.mjs";
|
|
import { EmbedBuilder } from "@fluxerjs/core";
|
|
import { getGlobalColor } from "../src/MessageHandler.mjs";
|
|
|
|
export const command = new CommandBuilder()
|
|
.setName("shuffle")
|
|
.setDescription("Re-orders the queue randomly.", "commands.shuffle")
|
|
.setCategory("music");
|
|
|
|
export async function run(message) {
|
|
const p = await this.getPlayer(message, false, false, false);
|
|
if (!p) return;
|
|
const res = p.shuffle();
|
|
const embed = new EmbedBuilder()
|
|
.setColor(getGlobalColor())
|
|
.setDescription(res)
|
|
.toJSON();
|
|
message.replyEmbed({ embeds: [embed] });
|
|
}
|