Skip to content

Commit

Permalink
perf: limit reply avatar dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzDerock committed Oct 19, 2022
1 parent 55a213c commit 00475de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/renderers/reply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default async function renderReply(message: Message, context: RenderMessa
edited={!isCommand && referencedMessage.editedAt !== null}
attachment={referencedMessage.attachments.size > 0}
author={referencedMessage.member?.nickname ?? referencedMessage.author.username}
avatar={referencedMessage.author.avatarURL() ?? undefined}
avatar={referencedMessage.author.avatarURL({ size: 32 }) ?? undefined}
roleColor={referencedMessage.member?.displayHexColor ?? undefined}
bot={!isCrosspost && referencedMessage.author.bot}
verified={referencedMessage.author.flags?.has(UserFlags.VerifiedBot)}
Expand Down

0 comments on commit 00475de

Please sign in to comment.