diff --git a/src/structure/components/observers/CommandHandler.js b/src/structure/components/observers/CommandHandler.js index a739608..d48a0ee 100644 --- a/src/structure/components/observers/CommandHandler.js +++ b/src/structure/components/observers/CommandHandler.js @@ -122,7 +122,8 @@ class CommandHandler extends Observer { const { command } = invoker; if (response.error && response.index) { - if(!response.emoji) response.emoji = 'failure'; + if (!response.emoji) response.emoji = 'failure'; + if (!response.params) response.params = response.option; return invoker.reply(response); } else if (response.error) { let content = invoker.format(`O_COMMANDHANDLER_TYPE${response.option.type}`, { diff --git a/src/structure/components/observers/GuildLogging.js b/src/structure/components/observers/GuildLogging.js index ab0ad31..d217235 100644 --- a/src/structure/components/observers/GuildLogging.js +++ b/src/structure/components/observers/GuildLogging.js @@ -169,7 +169,7 @@ class GuildLogger extends Observer { if (missing.length) return this.client.emit('logError', { guild: wrapper, logger: 'messageLogger', reason: 'MSGLOG_NO_PERMS', params: { missing: missing.join(', ') } }); - if (bypass.length && message?.member.roles.cache.size) { + if (bypass.length && message.member?.roles.cache.size) { const roles = member.roles.cache.map((r) => r.id); for (const role of bypass) { if (roles.includes(role)) return undefined;