fix: use booleans for bots

This commit is contained in:
Roardom
2024-08-26 09:08:02 +00:00
parent 25d62138b3
commit 3923f4c2e3
2 changed files with 13 additions and 4 deletions
+12 -3
View File
@@ -48,13 +48,22 @@ class Bot extends Model
/**
* Get the attributes that should be cast.
*
* @return array{name: 'string', cost: 'decimal:2'}
* @return array{
* name: 'string',
* cost: 'decimal:2'
* is_protected: 'bool',
* is_nerdbot: 'bool',
* is_systembot: 'bool',
* }
*/
protected function casts(): array
{
return [
'name' => 'string',
'cost' => 'decimal:2',
'name' => 'string',
'cost' => 'decimal:2',
'is_protected' => 'bool',
'is_nerdbot' => 'bool',
'is_systembot' => 'bool',
];
}