Fixed audio commands and whisper
This commit is contained in:
parent
2cffdf6628
commit
f0f0bff8f3
2 changed files with 6 additions and 4 deletions
|
@ -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"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue