Tylertron1998 / mandatum

A simple command library for the Remora.Discord API library powered by source generators to avoid reflection overhead.
MIT License
1 stars 0 forks source link

Create an interface for Preconditions. #4

Open Tylertron1998 opened 3 years ago

Tylertron1998 commented 3 years ago

As the title suggests, we need a type for preconditions, for checking if a command should run.

Something to consider here: how about passing data? Should the precondition have access to the command arguments? I think personally not. If there is an issue with the arguments that should be handled by the command.