discord-player 6.0.0-dev.1 → 6.0.0-dev.2
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2788,7 +2788,7 @@ var Player = class extends import_utils8.EventEmitter {
|
|
|
2788
2788
|
if (!vc?.isVoiceBased())
|
|
2789
2789
|
throw new Error("Expected a voice channel");
|
|
2790
2790
|
const result = query instanceof SearchResult ? query : await this.search(query, options);
|
|
2791
|
-
if (
|
|
2791
|
+
if (result.isEmpty()) {
|
|
2792
2792
|
throw new Error(`No results found for "${query}" (Extractor: ${result.extractor?.identifier || "N/A"})`);
|
|
2793
2793
|
}
|
|
2794
2794
|
const queue = this.nodes.create(vc.guild, options.nodeOptions);
|