seyfert 3.2.7-dev-18639984325.0 → 3.2.7-dev-18661561926.0

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.
@@ -63,7 +63,10 @@ class EventHandler extends common_1.BaseHandler {
63
63
  }
64
64
  async load(eventsDir) {
65
65
  const paths = await this.loadFilesK(await this.getFiles(eventsDir));
66
- for (const { events, file } of paths.map(x => ({ events: this.onFile(x.file), file: x }))) {
66
+ for (const { events, file } of paths.map(x => ({
67
+ events: this.onFile(x.file),
68
+ file: x,
69
+ }))) {
67
70
  if (!events)
68
71
  continue;
69
72
  for (const i of events) {
@@ -194,7 +197,7 @@ class EventHandler extends common_1.BaseHandler {
194
197
  return this.client.collectors.run(name, args, this.client);
195
198
  }
196
199
  Event.fired = true;
197
- this.logger.debug(`executed a custom event [${name}]`, Event.data.once ? 'once' : '');
200
+ this.client.debugger?.debug(`executed a custom event [${name}]`, Event.data.once ? 'once' : '');
198
201
  await Promise.all([
199
202
  Event.run(...args, this.client),
200
203
  // @ts-expect-error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "3.2.7-dev-18639984325.0",
3
+ "version": "3.2.7-dev-18661561926.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",