Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Allvaa committed Sep 30, 2021
1 parent 27fff65 commit 5cdbdd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structures/MusicHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ module.exports = class MusicHandler {
}

async load(query) {
const spotify = this.client.spotify.getNode(this.node.name);
if (this.client.spotify.isValidURL(query)) {
const spotify = this.client.spotify?.getNode(this.node.name);
if (this.client.spotify?.isValidURL(query)) {
const { loadType: type, tracks, playlistInfo: { name } } = await spotify.load(query);
return {
type,
Expand Down

0 comments on commit 5cdbdd2

Please sign in to comment.