Closed Ganoodles closed 1 year ago
Reminding myself to close #16 when this is merged
@awsomearvinder, those changes should be implemented. I chose to remove errors.py
entirely in favor of using only the default discord error handling; it seemed to be more than sufficient, and I couldn't think of any use cases in which someone would need to add a custom error message. Although, I left the code in there (commented out) just in case someone needs to use it.
Try using a
match
statement instead ofif isinstance
. IMO it makes for cleaner code for stuff like this. Also, I'm not too much of a fan of all dynamic behavior of the code as is to be honest. Is there any reason we can't just have:for the handler?
On another note, errors should probably be defined in like, src/errors.py and not src/utils.
edit: had a talk on discord, exact handler should be something like,