Skip to content

Auto Delete Command and Options Difference Detection#18

Open
lvorex wants to merge 5 commits into
AlexzanderFlores:mainfrom
lvorex:main
Open

Auto Delete Command and Options Difference Detection#18
lvorex wants to merge 5 commits into
AlexzanderFlores:mainfrom
lvorex:main

Conversation

@lvorex
Copy link
Copy Markdown
Contributor

@lvorex lvorex commented May 8, 2023

What Changed ?

  • Options in subcommands can be detected with "areOptionsDifferent" function,
    also changed typings in CommandObject for callback from "unknown".
    In this way, people will be able to understand what to write in the parentheses when they write return { }.

  • And automatic deletes command on start if command file deleted. It is false by default. Users who want can activate the system while creating object.
    Inspired by: Delete slash commands #4 and How to auto delete command when a command file is deleted #7

Example:

new WOKCommands({
    autoDeleteCommand: true // Default is false.
})

@lvorex lvorex changed the title fix: subcommand options and CommandObject callback typings. fix: subcommand options & CommandObject callback typings and Automatic Delete May 8, 2023
@lvorex lvorex changed the title fix: subcommand options & CommandObject callback typings and Automatic Delete Auto Delete Command and Options Difference Detection Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant