hoshimi 0.2.0 β†’ 0.2.5

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 CHANGED
@@ -19,15 +19,15 @@
19
19
  </div>
20
20
 
21
21
  ## πŸ“¦ Features
22
- - πŸ“‹ **V4**: Fully supports the latest v4 lavalink features.
23
- - πŸ”— **Node Manager**: Manage nodes, auto least‑used selection by penalties, session resume and more.
22
+ - πŸ“‹ **V4**: Works with lavalink v4 and their features (wip).
23
+ - πŸ”— **Node Manager**: Manage nodes, auto least‑used selection, session resume and more.
24
24
  - ▢️ **Autoplay**: YouTube and Spotify recommendations out of the box; easily extend with your own function.
25
25
  - πŸ“ **Lyrics**: Control your lyrics with live-lyrics updates; validates required plugins.
26
26
  - 🌐 **REST + WebSocket**: Typed REST helpers, player/session control, decode single/multiple tracks.
27
27
  - πŸ“£ **Events**: Granular events with debug levels.
28
28
  - 🧩 **Extensible**: Override structures with your own ones.
29
29
  - πŸ§ͺ **Safety & DX**: Strict validation, descriptive errors, TypeScript-first API build, and formatting/linting.
30
- - πŸ“œ **Filters (WIP)**: Built-in filters, easy management and easy to use!
30
+ - πŸ“œ **Filters**: Built-in filters, easy management and easy to use!
31
31
 
32
32
  ## βš™οΈ Requirements
33
33
  - **Runtime** - atleast one of:
@@ -77,12 +77,15 @@ const hoshimi = new Hoshimi({
77
77
  },
78
78
  ], // Add more nodes if you want!
79
79
  sendPayload(guildId, payload) {
80
- // You client send to shard payload function
80
+ // Your client send to shard payload function
81
81
  client.gateway.send(client.gateway.calculateShardId(guildId), payload);
82
82
  },
83
83
  });
84
84
 
85
- // FOLLOW YOU CLIENT EVENT IMPLEMENTATION
85
+ // Bind the manager into your client!
86
+ client.hoshimi = hoshimi;
87
+
88
+ // FOLLOW YOUR CLIENT EVENT IMPLEMENTATION
86
89
  // THIS IS ONLY A EXAMPLE, NOT A REAL USAGE
87
90
  client.events.values.READY = {
88
91
  __filePath: null,
@@ -105,7 +108,7 @@ client.events.values.RAW = {
105
108
  };
106
109
 
107
110
  (async () => {
108
- await client.start()
111
+ await client.start();
109
112
  })();
110
113
  ```
111
114