You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, some commands in Foxy are implemented as functions. To enhance maintainability, readability, and ensure consistent patterns throughout the codebase, these command executors need to be refactored to use classes.
The command executors and declarators are located in the directory foxy/parent/src/command/vanilla/category/.
⚠️ Important:
Carefully handle the types during this refactoring. Ensure the context parameter is correctly typed as UnleashedCommandExecutor.
Implementation Pattern:
The command should follow this structure:
exportdefaultclassCommandName{asyncexecute(context: UnleashedCommandExecutor,endCommand,t){// Command logic // Feel free to add additional methods as needed to improve readability}}
Additionally, it needs to be declared in the corresponding file located in the command/vanilla/category/declarations directory as follows:
Currently, some commands in Foxy are implemented as functions. To enhance maintainability, readability, and ensure consistent patterns throughout the codebase, these command executors need to be refactored to use classes.
The command executors and declarators are located in the directory
foxy/parent/src/command/vanilla/category/
.Carefully handle the types during this refactoring. Ensure the
context
parameter is correctly typed asUnleashedCommandExecutor
.Implementation Pattern:
The command should follow this structure:
Additionally, it needs to be declared in the corresponding file located in the
command/vanilla/category/declarations
directory as follows:H4PPY C0D1NG! 🎉
The text was updated successfully, but these errors were encountered: