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 cc!verbal command #202

Closed Victoria-DR closed 2 years ago

Victoria-DR commented 3 years ago

What issue is this solving?

Closes #178

Description

Added the cc!verbal command. Functions essentially the same way as cc!warn but makes records in user_notes rather than infractions (also logs to mod_log). Stops the execution of the command and sends feedback if an error is encountered while trying to send a DM to the specified user. (Might need to consider refactoring this error handling since it will pick up any errors, not just the specific DM unavailable error; already tried instanceof and .name to no avail. Error handling for closed DMs should also be implemented in cc!warn in the future.)

Any helpful knowledge/context for the reviewer?

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

Victoria-DR commented 2 years ago

Whoops, I forgot to remove it before I pushed. Thanks for catching it!