diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-27 22:39:07 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-27 22:39:07 -0400 |
commit | 94c20f17f1a87e594fc07a75eb6026891086c67c (patch) | |
tree | f32942ce07630352afbf4d7be2b718fc9724502c /src/lib/extensions/discord.js | |
parent | f718df9321f2ff28a5a1f20d53e474fbf5998d6e (diff) | |
download | tanzanite-94c20f17f1a87e594fc07a75eb6026891086c67c.tar.gz tanzanite-94c20f17f1a87e594fc07a75eb6026891086c67c.tar.bz2 tanzanite-94c20f17f1a87e594fc07a75eb6026891086c67c.zip |
fix: use util#formatError
Diffstat (limited to 'src/lib/extensions/discord.js')
-rw-r--r-- | src/lib/extensions/discord.js/BushGuildMember.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/extensions/discord.js/BushGuildMember.ts b/src/lib/extensions/discord.js/BushGuildMember.ts index 5e9e150..7cc89d2 100644 --- a/src/lib/extensions/discord.js/BushGuildMember.ts +++ b/src/lib/extensions/discord.js/BushGuildMember.ts @@ -373,7 +373,7 @@ export class BushGuildMember extends GuildMember { const muteSuccess = await this.roles .remove(muteRole, `[Unmute] ${moderator.tag} | ${options.reason ?? 'No reason provided.'}`) .catch(async (e) => { - await client.console.warn('muteRoleAddError', e?.stack || e); + await client.console.warn('muteRoleAddError', util.formatError(e)); return false; }); if (!muteSuccess) return unmuteResponse.ACTION_ERROR; |