fix(client): Aiscript: button is not defined

Fix #9704
This commit is contained in:
syuilo 2023-01-23 12:53:44 +09:00
parent 2c52655b17
commit ed9facbb33
2 changed files with 8 additions and 1 deletions

View File

@ -9,6 +9,13 @@
You should also include the user name that made the change.
-->
## 13.x.x (unreleased)
### Improvements
### Bugfixes
- Aiscript: button is not defined
## 13.1.7 (2023/01/22)
### Improvements

View File

@ -303,7 +303,7 @@ function getButtonOptions(def: values.Value | undefined, call: (fn: values.VFn,
if (primary) utils.assertBoolean(primary);
const rounded = def.value.get('rounded');
if (rounded) utils.assertBoolean(rounded);
const disabled = button.value.get('disabled');
const disabled = def.value.get('disabled');
if (disabled) utils.assertBoolean(disabled);
return {