seyfert 2.1.1-dev-12505406533.0 → 2.1.1-dev-12506098636.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 +6 -1
- package/package.json +1 -1
package/lib/events/handler.js
CHANGED
|
@@ -166,7 +166,12 @@ class EventHandler extends common_1.BaseHandler {
|
|
|
166
166
|
const Event = this.values[name];
|
|
167
167
|
try {
|
|
168
168
|
if (!Event || (Event.data.once && Event.fired)) {
|
|
169
|
-
return
|
|
169
|
+
return runCache
|
|
170
|
+
? this.client.cache.onPacket({
|
|
171
|
+
t: name,
|
|
172
|
+
d: packet,
|
|
173
|
+
})
|
|
174
|
+
: undefined;
|
|
170
175
|
}
|
|
171
176
|
Event.fired = true;
|
|
172
177
|
const hook = await RawEvents[name]?.(client, packet);
|