-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Is your feature request related to a problem? Please describe.
Currently the way to combine preconditions is using nested arrays such as: [['AdminOnly', ['ModOnly', 'OwnerOnly']], 'InVoiceChannel'];
. This is extremely developer unfriendly because it's extremely chaotic and you have to thoroughly know how preconditions are parsed to start making the least amount of sense of this array.
Describe the solution you'd like
We can take a note out of how other libraries handle cases like this, such as Prisma who has $and
, $or
, and $not
to better build up the preconditions list.
Describe alternatives you've considered
Using what we have no? Nah.
Additional context
jmopel