seyfert 2.1.1-dev-12497587234.0 → 2.1.1-dev-12505406533.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.
- package/lib/events/handler.js +4 -6
- package/package.json +1 -1
package/lib/events/handler.js
CHANGED
|
@@ -170,17 +170,15 @@ class EventHandler extends common_1.BaseHandler {
|
|
|
170
170
|
}
|
|
171
171
|
Event.fired = true;
|
|
172
172
|
const hook = await RawEvents[name]?.(client, packet);
|
|
173
|
-
await Event.run(hook, client, shardId);
|
|
174
|
-
}
|
|
175
|
-
catch (e) {
|
|
176
|
-
await this.onFail(name, e);
|
|
177
|
-
}
|
|
178
|
-
finally {
|
|
179
173
|
if (runCache)
|
|
180
174
|
await this.client.cache.onPacket({
|
|
181
175
|
t: name,
|
|
182
176
|
d: packet,
|
|
183
177
|
});
|
|
178
|
+
await Event.run(hook, client, shardId);
|
|
179
|
+
}
|
|
180
|
+
catch (e) {
|
|
181
|
+
await this.onFail(name, e);
|
|
184
182
|
}
|
|
185
183
|
}
|
|
186
184
|
async runCustom(name, ...args) {
|