This commit is contained in:
Erik 2022-09-10 16:24:19 +03:00
parent 073177be31
commit 5115f5a6e1
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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) }),