Skip to content

Commit

Permalink
add additional info to the target field
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Apr 4, 2024
1 parent c8373b4 commit 424bfc0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/services/discord/modules/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,14 @@ export default (bot: DiscordBot): void => {
if (entry.target && entry.targetId) {
const target = "```ansi\n" + format(entry.target);
embed.addFields(
f(`${entry.targetType} (${entry.targetId})`, trimfield(target, 1024, true))
f(
`${entry.targetType} (${entry.targetId})`,
`${entry.target.toString()}\n${trimfield(
target,
1023 - entry.target.toString().length,
true
)}`
)
);
}

Expand Down

0 comments on commit 424bfc0

Please sign in to comment.