Fix a couple of sound player bugs
This commit is contained in:
parent
e211ddf5b9
commit
046b1d7f28
2 changed files with 13 additions and 4 deletions
|
@ -4,7 +4,7 @@ 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) {
|
||||
if (this.channel.guild) {
|
||||
this.connection = players.get(this.channel.guild.id);
|
||||
this.queue = queues.get(this.channel.guild.id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue