refactor(components): default set boolean methods to true (#7502)

This commit is contained in:
Rodry
2022-02-20 12:35:00 +00:00
committed by GitHub
parent 71f4fa82ed
commit b12214922c
6 changed files with 6 additions and 6 deletions

View File

@@ -92,7 +92,7 @@ export class UnsafeSelectMenuComponent extends Component<
* Sets whether or not this select menu is disabled
* @param disabled Whether or not this select menu is disabled
*/
public setDisabled(disabled: boolean) {
public setDisabled(disabled = true) {
this.data.disabled = disabled;
return this;
}