mirror of
https://github.com/musix-org/musix-oss
synced 2025-01-07 03:14:48 +00:00
16 lines
448 B
JavaScript
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()
|
|
}
|
|
}
|
|
};
|