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

add audit log helper target user thumbnail option #317

Closed mikejoh12 closed 2 years ago

mikejoh12 commented 2 years ago

What issue is this solving?

Closes #316

Description

Adds an optional targetUser property to to audit log helper function. If the targetUser is included, the function will now generate a thumbnail of that user. If it's not included, it will generate a thumbnail of the interaction user (usually the moderator). Implemented this functionality in those slash commands that were already including a thumbnail of the target user for the text based commands.

Any helpful knowledge/context for the reviewer?

Please make sure you've attempted to meet the following coding standards