CodecademyCommunity / codecademy-discord-bot

Custom moderation bot for the official Codecademy Community Discord server.
https://codecademycommunity.github.io/
MIT License
11 stars 1 forks source link

The sendToAuditLogsChannel (used for slash commands) helper does not render thumbnail of target user #316

Closed mikejoh12 closed 2 years ago

mikejoh12 commented 2 years ago

For many commands we have previously included a small thumbnail of the target user in the embed for the audit logs channel. This functionality is not included in the helper function but can be added.

One approach is for the function to take an additional argument or object property that is a target user object. Then the function could be modified to render the image. Update the function JSDoc comment to reflect changes.

The solution could also include applying this to the current slash-commands where it makes sense to have a thumbnail of the target user.