fix: use bool for bot active instead of int

Also update docblocks. Related: #4085.
This commit is contained in:
Roardom
2024-10-20 10:26:00 +00:00
parent dd033ec6d7
commit e4ac5caa30
3 changed files with 8 additions and 11 deletions
+6 -4
View File
@@ -31,10 +31,10 @@ use Illuminate\Database\Eloquent\Model;
* @property string|null $icon
* @property string|null $emoji
* @property string|null $help
* @property int $active
* @property int $is_protected
* @property int $is_nerdbot
* @property int $is_systembot
* @property bool $active
* @property bool $is_protected
* @property bool $is_nerdbot
* @property bool $is_systembot
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
*/
@@ -51,6 +51,7 @@ class Bot extends Model
* @return array{
* name: 'string',
* cost: 'decimal:2',
* active: 'bool',
* is_protected: 'bool',
* is_nerdbot: 'bool',
* is_systembot: 'bool',
@@ -61,6 +62,7 @@ class Bot extends Model
return [
'name' => 'string',
'cost' => 'decimal:2',
'active' => 'bool',
'is_protected' => 'bool',
'is_nerdbot' => 'bool',
'is_systembot' => 'bool',