Fixed audio commands and whisper

This commit is contained in:
Essem 2022-03-31 13:47:22 -05:00
parent 2cffdf6628
commit f0f0bff8f3
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 6 additions and 4 deletions

View file

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