mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
fix: return only boolean for disabled (#8965)
* fix: return only boolean for `disabled` * fix: return only boolean for `disabled` Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -45,11 +45,11 @@ class BaseSelectMenuComponent extends Component {
|
||||
|
||||
/**
|
||||
* Whether this select menu is disabled
|
||||
* @type {?boolean}
|
||||
* @type {boolean}
|
||||
* @readonly
|
||||
*/
|
||||
get disabled() {
|
||||
return this.data.disabled ?? null;
|
||||
return this.data.disabled ?? false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,11 +36,11 @@ class ButtonComponent extends Component {
|
||||
|
||||
/**
|
||||
* Whether this button is disabled
|
||||
* @type {?boolean}
|
||||
* @type {boolean}
|
||||
* @readonly
|
||||
*/
|
||||
get disabled() {
|
||||
return this.data.disabled ?? null;
|
||||
return this.data.disabled ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user