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?
Is a re-seeding of the database necessary? No
Any new dependencies to install? No
Any special requirements to test? Moderator role or higher required. To test error handling for closed DMs, the user being verballed has to have DMs turned off in all servers that the bot shares with them.
(e.g., admin perms, alt account, etc.)
Please make sure you've attempted to meet the following coding standards
[x] Code has been tested and does not produce errors
[x] Code is readable and formatted
[x] There isn't any unnecessary commented-out code
What issue is this solving?
Closes #178
Description
Added the
cc!verbal
command. Functions essentially the same way ascc!warn
but makes records inuser_notes
rather thaninfractions
(also logs tomod_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 triedinstanceof
and.name
to no avail. Error handling for closed DMs should also be implemented incc!warn
in the future.)Any helpful knowledge/context for the reviewer?
Please make sure you've attempted to meet the following coding standards