Fix a couple of sound player bugs

This commit is contained in:
Essem 2022-06-11 15:23:41 -05:00
parent e211ddf5b9
commit 046b1d7f28
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 13 additions and 4 deletions

View file

@ -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);
}