Added remove, fixed reload and broadcast

This commit is contained in:
Essem 2021-11-21 14:23:25 -06:00
parent e179b923f0
commit 514166c79f
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
5 changed files with 29 additions and 7 deletions

View file

@ -1,10 +1,11 @@
import Command from "./command.js";
import { players } from "../utils/soundplayer.js";
import { players, queues } from "../utils/soundplayer.js";
class MusicCommand extends Command {
constructor(client, cluster, worker, ipc, message, args, content, specialArgs) {
super(client, cluster, worker, ipc, message, args, content, specialArgs);
this.connection = players.get(message.channel.guild.id);
this.queue = queues.get(message.channel.guild.id);
}
static requires = ["sound"];