Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Docs to reflect autoRegisterExtractor depreciation #1722

Merged
merged 3 commits into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ const client = new Discord.Client({
});

// this is the entrypoint for discord-player based application
const player = new Player(client);
const player = new Player(client, {
autoRegisterExtractor: false // This is to prevent the Deprecation Warning
});
// This is to load the default extractors from the @discord-player/extractor package
await player.extractors.loadDefault();
```

> **Did You Know?** _Discord Player is by default a singleton._
Expand Down
2 changes: 1 addition & 1 deletion docs/community/community_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ An unofficial extractor for discord-player to add support for deezer source.
| [Yeci](https://github.com/yeci226/yeci-bot) | I am using discord-player to play music with shards | v6.0.0 |
| [Lofi Girl bot](https://github.com/Greensky-gs/Lofi-girl) | I made a Lofi music bot with discord-player | v6.0.0 |
| [Auricle](https://github.com/itsauric/auricle-music-bot) | This is a music bot created by using the [sapphire framework](https://github.com/sapphiredev/framework) & [discord-player](https://github.com/Androz2091/discord-player/tree/master) with this project being written in TypeScript. | v6.1.1 |
| [Jappan](https://github.com/febkosq8/Jappan) | A simple discord bot made to make someone's life easier. Currently features Music Playback, Fun Commands, Leveling System & Moderation Tools | v6.1.0 |
| [Jappan](https://github.com/febkosq8/Jappan) | A simple discord bot made to make someone's life easier. Currently features Music Playback, Fun Commands, Leveling System & Moderation Tools | v6.2.1 |
| [Botanique](https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique) | A bot I made with [my girlfriend](https://github.com/2-1-1-2), we're using discord-player for the music and for lyrics | v6.1.0 |
| [Bhop Music Bot](https://github.com/akanora/bhop-music-bot) | There were not many bots made with discord-player 6.0.0 and discord.js 14.7.1, I was bored and made a simple one. We are using discord-player to listen music while bhopping. 🐇| v6.1.0 |
| [Music Disc](https://github.com/hmes98318/Music-Disc) | I am using discord-player v6 to play music on Discord with friends. It's easy to set up and run yourself. | v6.1.1 |
Expand Down
6 changes: 5 additions & 1 deletion docs/migrating/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ const client = new Discord.Client({
});

// this is the entrypoint for discord-player based application
const player = new Player(client);
const player = new Player(client, {
autoRegisterExtractor: false // This is to prevent the Deprecation Warning
});
// This is to load the default extractors from the @discord-player/extractor package
await player.extractors.loadDefault();
```

> **Did You Know?** _Discord Player is by default a singleton._
Expand Down