hoshimi 0.2.0 β 0.3.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 +9 -6
- package/dist/index.d.mts +3639 -3533
- package/dist/index.d.ts +3639 -3533
- package/dist/index.js +3054 -2971
- package/dist/index.mjs +3053 -2971
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
21
|
## π¦ Features
|
|
22
|
-
- π **V4**:
|
|
23
|
-
- π **Node Manager**: Manage nodes, auto leastβused selection
|
|
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
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
|