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

16 lines
448 B
JavaScript
Raw Normal View History

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