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?
Is a re-seeding of the database necessary? ❌
Any new dependencies to install? ❌
Any special requirements to test? ✔️
Testing the commands requires the relevant role to execute that command
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 #210
Description
Updates the
cc!notes
,cc!addnote
andcc!verbal
commands to use the newhasTargetUser()
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