17 lines
481 B
JavaScript
17 lines
481 B
JavaScript
import Command from "./command.js";
|
|
import { players, queues } from "../utils/soundplayer.js";
|
|
|
|
class MusicCommand extends Command {
|
|
constructor(client, cluster, worker, ipc, options) {
|
|
super(client, cluster, worker, ipc, options);
|
|
if (this.channel) {
|
|
this.connection = players.get(this.channel.guild.id);
|
|
this.queue = queues.get(this.channel.guild.id);
|
|
}
|
|
}
|
|
|
|
static requires = ["sound"];
|
|
static slashAllowed = false;
|
|
}
|
|
|
|
export default MusicCommand;
|