1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-01-07 03:14:48 +00:00
musix-oss/src/commands/replay.js
2024-02-10 09:33:59 +02:00

16 lines
448 B
JavaScript

module.exports = {
name: 'replay',
alias: ["rp"],
usage: '',
description: 'Replay the currently playing song.',
permission: 'MANAGE_MESSAGES',
category: 'play',
async execute(msg, args, client, command) {
const queue = client.queue.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
queue.endReason = "replay";
queue.connection.dispatcher.end()
}
}
};