catto.js 1.4.8 → 1.4.9

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/Bot.js +1 -1
  2. package/package.json +1 -1
package/Bot.js CHANGED
@@ -320,7 +320,7 @@ module.exports = class extends EventEmitter {
320
320
  }
321
321
  var found = !1;
322
322
  for (var log of fetchedLogs.values()) {
323
- if (log.targetId != message.author.id || log.extra.channel.id != message.channel.id) {
323
+ if (!message.author || !message.channel || log.targetId != message.author.id || log.extra.channel.id != message.channel.id) {
324
324
  continue;
325
325
  }
326
326
  if (this.auditDatabase[log.id] !== log.extra.count) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {