dankgrinder 8.112.0 → 8.113.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.
Files changed (2) hide show
  1. package/lib/grinder.js +2 -2
  2. package/package.json +1 -1
package/lib/grinder.js CHANGED
@@ -802,7 +802,7 @@ class AccountWorker {
802
802
  function handler(msg) {
803
803
  if (msg.author.id === DANK_MEMER_ID && msg.channel.id === self.channel.id) {
804
804
  // ── Dispatch to registered handlers (dmg pattern) ────
805
- self._dispatchToHandlers('messageCreate', msg);
805
+ if (typeof self._dispatchToHandlers === 'function') self._dispatchToHandlers('messageCreate', msg);
806
806
  const hasComponentPayload = Array.isArray(msg.components)
807
807
  && msg.components.some(c => c && (c.components || c.content || c.type || c.label || c.customId));
808
808
  const hasContent = (msg.content && msg.content.length > 0)
@@ -833,7 +833,7 @@ class AccountWorker {
833
833
  const msgTs = newMsg.createdTimestamp || newMsg.createdAt?.getTime?.() || 0;
834
834
  if (msgTs > 0 && msgTs < sentAt - 1500) return;
835
835
  // ── Dispatch to registered handlers ─────────────────
836
- self._dispatchToHandlers('messageUpdate', newMsg);
836
+ if (typeof self._dispatchToHandlers === 'function') self._dispatchToHandlers('messageUpdate', newMsg);
837
837
  cleanup();
838
838
  resolve(newMsg);
839
839
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dankgrinder",
3
- "version": "8.112.0",
3
+ "version": "8.113.0",
4
4
  "description": "Dank Memer automation engine — grind coins while you sleep",
5
5
  "bin": {
6
6
  "dankgrinder": "bin/dankgrinder.js"