💁 Example submodule
This commit is contained in:
parent
122e097671
commit
5cce998739
7 changed files with 11 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
example/
|
||||
examples/
|
||||
node_modules/
|
||||
dist/
|
||||
.github/
|
||||
|
|
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -9,10 +9,4 @@ dist
|
|||
# Yarn logs
|
||||
yarn*.log
|
||||
|
||||
# example
|
||||
example/test
|
||||
example/music-bot/node_modules
|
||||
example/music-bot/package-lock.json
|
||||
example/music-bot/.env
|
||||
|
||||
dev/
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "examples/music-bot"]
|
||||
path = examples/music-bot
|
||||
url = https://github.com/Androz2091/discord-music-bot
|
3
examples/README.md
Normal file
3
examples/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Discord Player Examples
|
||||
|
||||
Examples for **[discord-player](https://github.com/Androz2091/discord-player)**.
|
1
examples/music-bot
Submodule
1
examples/music-bot
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit cae67e4e466b5884435572b9968859bc88220408
|
|
@ -415,9 +415,9 @@ class Player extends EventEmitter<PlayerEvents> {
|
|||
const data = new Track(this, {
|
||||
title: m.track.name ?? "",
|
||||
description: m.track.description ?? "",
|
||||
author: m.track.artists[0]?.name ?? "Unknown Artist",
|
||||
author: m.track.artists?.[0]?.name ?? "Unknown Artist",
|
||||
url: m.track.external_urls?.spotify ?? query,
|
||||
thumbnail: m.track.album?.images[0]?.url ?? "https://www.scdn.co/i/_global/twitter_card-default.jpg",
|
||||
thumbnail: m.track.album?.images?.[0]?.url ?? "https://www.scdn.co/i/_global/twitter_card-default.jpg",
|
||||
duration: Util.buildTimeCode(Util.parseMS(m.track.duration_ms)),
|
||||
views: 0,
|
||||
requestedBy: options.requestedBy as User,
|
||||
|
|
|
@ -136,7 +136,7 @@ export interface PlayerProgressbarOptions {
|
|||
* @property {number} [bufferingTimeout=3000] Buffering timeout for the stream
|
||||
* @property {boolean} [spotifyBridge=true] If player should bridge spotify source to youtube
|
||||
* @property {boolean} [disableVolume=false] If player should disable inline volume
|
||||
* @property {boolean} [volumeSmoothness=0] The volume transition smoothness between volume changes (lower the value to get better result)
|
||||
* @property {number} [volumeSmoothness=0] The volume transition smoothness between volume changes (lower the value to get better result)
|
||||
* Setting this or leaving this empty will disable this effect. Example: `volumeSmoothness: 0.1`
|
||||
* @property {Function} [onBeforeCreateStream] Runs before creating stream
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue