From 5115f5a6e1dc8a3293700504a1ce56c934204c1f Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 10 Sep 2022 16:24:19 +0300 Subject: [PATCH] bugfix --- src/structure/client/Resolver.js | 2 +- src/structure/components/observers/GuildLogging.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structure/client/Resolver.js b/src/structure/client/Resolver.js index c2069ec..94a638b 100644 --- a/src/structure/client/Resolver.js +++ b/src/structure/client/Resolver.js @@ -275,7 +275,7 @@ class Resolver { const match = resolveable.toString().match(id); const [, , rId] = match; - const role = await roles.fetch(rId).catch(this.client.logger.error); + const role = await roles.fetch(rId).catch(this.client.logger.error.bind(this.client.logger)); if (role) resolved.push(role); } else { diff --git a/src/structure/components/observers/GuildLogging.js b/src/structure/components/observers/GuildLogging.js index fb4e009..3b3b424 100644 --- a/src/structure/components/observers/GuildLogging.js +++ b/src/structure/components/observers/GuildLogging.js @@ -204,7 +204,7 @@ class GuildLogger extends Observer { else field.value += ` ${word}`; } - if (field.value.length) fields.push(field); + if (field.value.trim().length) fields.push(field); const embed = { title: wrapper.format('MSGLOG_DELETE_TITLE', { channel: channel.name, author: Util.escapeMarkdown(author.tag) }),