Create command results #42
Labels
difficulty:hard
This issue is a difficult one to fix, and may require several iterations before it can be resolved.
priority:low
This issue is queued to be worked on, but isn't important
scope:core
This issue focuses on the core Orikivo library.
state:planned
This issue is currently being planned out and/or designed.
type:enhancement
The issue is intended to introduce a new feature or change existing features.
All module classes should incorporate a base result class that contains more information than the base result that was specified. This would introduce a class called
CommandResult
, where it would contain details about the result of a command.The class would be structured in this format:
Command
that was executedCommandError
)TextBody
that was provided for this command result, if any (if the command failed, this is null)The
CommandResult
class can effectively be utilized to handle the updating of cooldowns and other scenarios. Likewise, The result of a command can be ignored entirely, and instead passed over to an event calledCommandExecuted
instead, which would be provided by aCommandService
class (similar toDiscord.Commands.CommandService
). The event parameters would contain only aCommandResult
.The text was updated successfully, but these errors were encountered: