merge master

This commit is contained in:
Snowflake107 2021-06-22 22:20:12 +05:45
commit f5c4ea6e86
8 changed files with 4944 additions and 15 deletions

View file

@ -1,6 +1,10 @@
---
name: Bug report
about: Create a bug report to help us improve
<<<<<<< HEAD
=======
title: ""
>>>>>>> 082780cce26bbec4d1069359763b96ac619fd7ce
labels: bug
assignees: ''

View file

@ -1,6 +1,10 @@
---
name: Feature request
about: Suggest an idea for this project
<<<<<<< HEAD
=======
title: ""
>>>>>>> 082780cce26bbec4d1069359763b96ac619fd7ce
labels: enhancement
assignees: ''

View file

@ -1,6 +1,10 @@
---
name: Question
about: Some questions related to this lib
<<<<<<< HEAD
=======
title: ""
>>>>>>> 082780cce26bbec4d1069359763b96ac619fd7ce
labels: question
assignees: ''

View file

@ -140,7 +140,7 @@ class Player extends EventEmitter<PlayerEvents> {
try {
prev.destroy();
} catch {} // eslint-disable-line no-empty
} catch { } // eslint-disable-line no-empty
this.queues.delete(guild.id);
return prev;
@ -171,9 +171,9 @@ class Player extends EventEmitter<PlayerEvents> {
const playlist = !data.playlist
? null
: new Playlist(this, {
...data.playlist,
tracks: []
});
...data.playlist,
tracks: []
});
const tracks = data.data.map(
(m) =>
@ -279,13 +279,13 @@ class Player extends EventEmitter<PlayerEvents> {
author:
spotifyPlaylist.type !== "playlist"
? {
name: spotifyPlaylist.artists[0]?.name ?? "Unknown Artist",
url: spotifyPlaylist.artists[0]?.external_urls?.spotify ?? null
}
name: spotifyPlaylist.artists[0]?.name ?? "Unknown Artist",
url: spotifyPlaylist.artists[0]?.external_urls?.spotify ?? null
}
: {
name: spotifyPlaylist.owner?.display_name ?? spotifyPlaylist.owner?.id ?? "Unknown Artist",
url: spotifyPlaylist.owner?.external_urls?.spotify ?? null
},
name: spotifyPlaylist.owner?.display_name ?? spotifyPlaylist.owner?.id ?? "Unknown Artist",
url: spotifyPlaylist.owner?.external_urls?.spotify ?? null
},
tracks: [],
id: spotifyPlaylist.id,
url: spotifyPlaylist.external_urls?.spotify ?? query,

View file

@ -96,7 +96,7 @@ class Util {
}
static get noop() {
return () => {}; // eslint-disable-line @typescript-eslint/no-empty-function
return () => { }; // eslint-disable-line @typescript-eslint/no-empty-function
}
}

4917
yarn.lock Normal file

File diff suppressed because it is too large Load diff