Closed mybearworld closed 1 year ago
Does !a undefined
exist?
What do you mean? I have not specified an undefined
property on the object.
On a, you have properties b, c, etc. If you don't have a property called undefined, bad stuff could happen as I just remembered I didn't test that.
When you execute !a
, it will actually call !a undefined
I tested your code and you need to add the undefined
property to make it stop crashing, like this:
Every commandMap is expected to have this property (except client.commands). I need to add some checks for this maybe.
I tested your code and you need to add the
undefined
property to make it stop crashing, like this:
Okay, thank you, I wasn't aware of this - in earlier versions, it would just not do anything.
The undefined commands are a giant mess, my apologies for that.
This confusion will not happen anymore with the new metadata for (sub)commands system, see #43.
If you have subcommands like
!a b
,!a c
,!a d
, just trying to call!a
crashes msgroom-nightly. Here's the error from toB: