1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-01-09 02:34:49 +00:00
musix-oss/src/commands/replay.js

16 lines
477 B
JavaScript
Raw Normal View History

2020-04-29 11:41:16 +00:00
module.exports = {
name: 'replay',
alias: 'none',
usage: '',
description: 'Replay the currently playing song.',
onlyDev: false,
permission: 'MANAGE_MESSAGES',
category: 'music',
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()
}
}
};