zumito-framework 1.1.20 → 1.1.21
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/types/Module.js +1 -1
- package/package.json +1 -1
package/dist/types/Module.js
CHANGED
|
@@ -51,7 +51,7 @@ class Module {
|
|
|
51
51
|
registerDiscordEvent(frameworkEvent) {
|
|
52
52
|
if (frameworkEvent.disabled)
|
|
53
53
|
return;
|
|
54
|
-
const eventName = frameworkEvent.constructor.name.toLowerCase();
|
|
54
|
+
const eventName = frameworkEvent.constructor.name.charAt(0).toLowerCase() + frameworkEvent.constructor.name.slice(1);
|
|
55
55
|
const emitter = this.framework.client;
|
|
56
56
|
const once = frameworkEvent.once; // A simple variable which returns if the event should run once
|
|
57
57
|
// Try catch block to throw an error if the code in try{} doesn't work
|