1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-03-11 04:54:36 +00:00
musix-oss/src/commands/replay.js

16 lines
476 B
JavaScript
Raw Normal View History

2020-04-29 14:41:16 +03:00
module.exports = {
name: 'replay',
2020-05-15 19:05:39 +03:00
alias: ["rp"],
2020-04-29 14:41:16 +03:00
usage: '',
description: 'Replay the currently playing song.',
onlyDev: false,
permission: 'MANAGE_MESSAGES',
2020-07-12 19:08:53 +03:00
category: 'play',
2020-04-29 14:41:16 +03:00
async execute(msg, args, client, Discord, command) {
const queue = client.queue.get(msg.guild.id);
if (client.funcs.check(client, msg, command)) {
queue.endReason = "replay";
queue.connection.dispatcher.end()
}
}
};