dankgrinder 8.93.0 → 8.94.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/rawLogger.js +6 -0
- package/package.json +1 -1
package/lib/rawLogger.js
CHANGED
|
@@ -583,6 +583,12 @@ function attachDmLogger(client, opts = {}) {
|
|
|
583
583
|
pipe.exec().catch(() => {});
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
+
// Store to channelLast so getLastRaw(channelId) works for DM messages.
|
|
587
|
+
// This is critical: attachRawLogger's channel filter may miss on first login
|
|
588
|
+
// (this.channel not yet set), but attachDmLogger always fires for DMs.
|
|
589
|
+
const stored = store(d, 'CREATE');
|
|
590
|
+
if (stored && stored.then) stored.catch(() => {});
|
|
591
|
+
|
|
586
592
|
// Emit to listeners
|
|
587
593
|
if (dmEvent) {
|
|
588
594
|
for (const fn of dmListeners) {
|