@kattowo/distube 6.0.1 → 6.0.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.mjs CHANGED
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
 
4
4
  // src/constant.ts
5
- var version = "6.0.1";
5
+ var version = "6.0.2";
6
6
  var AUDIO_SAMPLE_RATE = 48e3;
7
7
  var AUDIO_CHANNELS = 2;
8
8
  var DEFAULT_VOLUME = 50;
@@ -3322,7 +3322,7 @@ var DisTube = class _DisTube extends TypedEmitter3 {
3322
3322
  * @returns The DisTube instance
3323
3323
  * @example
3324
3324
  * ```ts
3325
- * const distube = await DisTube.create(client, { plugins: [new YoutubePlugin()] });
3325
+ * const distube = await DisTube.create(client, { plugins: [new MyPlugin()] });
3326
3326
  * ```
3327
3327
  */
3328
3328
  static async create(client, opts = {}) {
@@ -3519,12 +3519,12 @@ ${e.message}`;
3519
3519
  *
3520
3520
  * It matches the {@link Plugin.source} of the plugin, or one of its
3521
3521
  * {@link Plugin.aliases}. The identifier of the class is used when the
3522
- * plugin does not define a source (`YoutubePlugin` -> `youtube`).
3522
+ * plugin does not define a source (`MyPlugin` -> `myplugin`).
3523
3523
  * @param source - The identifier of the source
3524
3524
  * @returns The plugin, or `undefined` when there is none
3525
3525
  * @example
3526
3526
  * ```ts
3527
- * const plugin = distube.getPlugin("youtube");
3527
+ * const plugin = distube.getPlugin("myplugin");
3528
3528
  * ```
3529
3529
  */
3530
3530
  getPlugin(source) {
@@ -3643,7 +3643,7 @@ var Plugin = class {
3643
3643
  * The identifier of the source of the plugin.
3644
3644
  *
3645
3645
  * It defaults to the name of the class, lowercased, without the `Plugin`
3646
- * suffix (`YoutubePlugin` -> `youtube`).
3646
+ * suffix (`MyPlugin` -> `myplugin`).
3647
3647
  *
3648
3648
  * It is used to route a search to a plugin, and to find a plugin with
3649
3649
  * {@link DisTube#getPlugin}.