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

Updated `notes`, `addnote` and `verbal` commands to use hasTargetUser #211

Closed lyallstewart closed 3 years ago

lyallstewart commented 3 years ago

What issue is this solving?

Closes #210

Description

Updates the cc!notes, cc!addnote and cc!verbal commands to use the new hasTargetUser() helper function.

I did these three first because they where the easiest to implement (just changing a function call and removing the old function), most of the other commands use a different method of checking the target user so they might be slightly more complex to refactor, so I'll do them in a separate PR (or a couple).

Any helpful knowledge/context for the reviewer?

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