dbm-network / mods

User-made modifications and improvements to Discord Bot Maker.
https://dbm-network.github.io
MIT License
166 stars 202 forks source link

Store Audit Log Info error #1014

Closed Cyronix09 closed 8 months ago

Cyronix09 commented 11 months ago

Discord Bot Maker version (master branch only supports 2.1.X) 2.2.X

Bug Info Store Audit Log Info action not working its giving always error

Describe the bug store_audit_log_info_MOD.js:148 ? if (auditLog.target.bot && auditLog.targetType === 'USER') { ? ^ ? ? TypeError: Cannot read properties of undefined (reading 'bot') ? at Object.action [as Store Audit Log Info MOD] (C:\Users\CanerE\Desktop\Shurima Empire BOT\actions\store_audit_log_info_MOD.js:148:31) ? at Object.Actions.callNextAction (C:\Users\CanerE\Desktop\Shurima Empire BOT\bot.js:1511:21) ? at C:\Users\CanerE\Desktop\Shurima Empire BOT\actions\store_audit_log_list_MOD.js:191:12 ? at processTicksAndRejections (node:internal/process/task_queues:96:5) ? ? Node.js v17.4.0 ?

BOT\actions\store_audit_log_info_MOD.js:156 ? result = server.members.cache.get(auditLog.executor.id); ? ^ ? ? TypeError: Cannot read properties of undefined (reading 'id') ? at Object.action [as Store Audit Log Info MOD] (C:\Users\CanerE\Desktop\Shurima Empire BOT\actions\store_audit_log_info_MOD.js:156:61) ? at Object.Actions.callNextAction (C:\Users\CanerE\Desktop\Shurima Empire BOT\bot.js:1511:21) ? at C:\Users\CanerE\Desktop\Shurima Empire BOT\actions\store_audit_log_list_MOD.js:191:12 ? at processTicksAndRejections (node:internal/process/task_queues:96:5) ? ? Node.js v17.4.0 ?