fix(api): force redefinition of user commands by default (#16918)

This commit is contained in:
Gregory Anders
2022-01-04 11:51:45 -07:00
committed by GitHub
parent 0b0c4f7dfa
commit 39238435db
3 changed files with 14 additions and 13 deletions

View File

@@ -1505,7 +1505,7 @@ void add_user_command(String name, Object command, Dict(user_command) *opts, int
goto err;
}
bool force = api_object_to_bool(opts->force, "force", false, err);
bool force = api_object_to_bool(opts->force, "force", true, err);
if (ERROR_SET(err)) {
goto err;
}