merge master
This commit is contained in:
commit
f5c4ea6e86
8 changed files with 4944 additions and 15 deletions
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
|
@ -1,6 +1,10 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a bug report to help us improve
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
title: ""
|
||||
>>>>>>> 082780cce26bbec4d1069359763b96ac619fd7ce
|
||||
labels: bug
|
||||
assignees: ''
|
||||
|
||||
|
|
4
.github/ISSUE_TEMPLATE/feature_request.md
vendored
4
.github/ISSUE_TEMPLATE/feature_request.md
vendored
|
@ -1,6 +1,10 @@
|
|||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
title: ""
|
||||
>>>>>>> 082780cce26bbec4d1069359763b96ac619fd7ce
|
||||
labels: enhancement
|
||||
assignees: ''
|
||||
|
||||
|
|
4
.github/ISSUE_TEMPLATE/question.md
vendored
4
.github/ISSUE_TEMPLATE/question.md
vendored
|
@ -1,6 +1,10 @@
|
|||
---
|
||||
name: Question
|
||||
about: Some questions related to this lib
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
title: ""
|
||||
>>>>>>> 082780cce26bbec4d1069359763b96ac619fd7ce
|
||||
labels: question
|
||||
assignees: ''
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue