discord-player 6.6.0-dev.0 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +466 -460
- package/dist/index.js +39 -20
- package/dist/index.mjs +2 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ Let's move on to the command part. You can define the command as per your requir
|
|
|
121
121
|
|
|
122
122
|
```js
|
|
123
123
|
async function execute(interaction) {
|
|
124
|
-
const channel = interaction.
|
|
124
|
+
const channel = interaction.member.voice.channel;
|
|
125
125
|
if (!channel) return interaction.reply('You are not connected to a voice channel!'); // make sure we have a voice channel
|
|
126
126
|
const query = interaction.options.getString('query', true); // we need input/query to play
|
|
127
127
|
|
|
@@ -148,4 +148,4 @@ That's all it takes to build your own music bot. Please check out the [Documenta
|
|
|
148
148
|
|
|
149
149
|
## Community Resources
|
|
150
150
|
|
|
151
|
-
Explore a curated list of resources built by the Discord Player community, including open-source music bots and extractors. Visit [https://discord-player.js.org/
|
|
151
|
+
Explore a curated list of resources built by the Discord Player community, including open-source music bots and extractors. Visit [https://discord-player.js.org/showcase](https://discord-player.js.org/showcase) for more information.
|