@spatulox/discord-module 0.2.1 → 0.2.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/README.md +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ Turn your Discord bot into independent modules that can be enabled or disabled a
|
|
|
16
16
|
|
|
17
17
|
🔄 Hot reload : Enable/Disable problematic modules without restarting the bot !
|
|
18
18
|
|
|
19
|
+
✅ Automatic Interactions Binding (name <-> function/method) : No more mess between interactions detection, dispatch and function/method call
|
|
20
|
+
|
|
19
21
|
Discordjs : Always up to date and completely compatible
|
|
20
22
|
|
|
21
23
|
## 🎮 Usage (2 minutes)
|
|
@@ -61,7 +63,7 @@ client.once(Events.ClientReady, () => {
|
|
|
61
63
|
manager.sendUIToChannel("channelID") // Optionnal, only if you want to dynamically toggle modules
|
|
62
64
|
|
|
63
65
|
// Register commands
|
|
64
|
-
|
|
66
|
+
interactionManager.registerSlash("ping", PongModule.pong_interaction)
|
|
65
67
|
});
|
|
66
68
|
```
|
|
67
69
|
|
|
@@ -69,4 +71,5 @@ client.once(Events.ClientReady, () => {
|
|
|
69
71
|
|---------------------|------------------|---------------|
|
|
70
72
|
| Hidden client.on | ❌ | ✅ |
|
|
71
73
|
| Live module enabled | ❌ (Need restart) | ✅ (One click) |
|
|
72
|
-
| Organised | ❌ | ✅ |
|
|
74
|
+
| Organised | ❌ | ✅ |
|
|
75
|
+
| Automatic interaction binding | ❌ | ✅ |
|