2023-02-02 15:45:17 +00:00
|
|
|
<?php
|
|
|
|
|
2023-02-06 20:16:54 +00:00
|
|
|
namespace App\Settings;
|
2023-02-02 15:45:17 +00:00
|
|
|
|
|
|
|
use Spatie\LaravelSettings\Settings;
|
|
|
|
|
|
|
|
class DiscordSettings extends Settings
|
|
|
|
{
|
2023-02-05 17:20:55 +00:00
|
|
|
public ?string $bot_token;
|
2023-02-02 15:45:17 +00:00
|
|
|
|
2023-02-05 17:20:55 +00:00
|
|
|
public ?string $client_id;
|
2023-02-02 15:45:17 +00:00
|
|
|
|
2023-02-05 17:20:55 +00:00
|
|
|
public ?string $client_secret;
|
2023-02-02 15:45:17 +00:00
|
|
|
|
2023-02-05 17:20:55 +00:00
|
|
|
public ?string $guild_id;
|
2023-02-02 15:45:17 +00:00
|
|
|
|
2023-02-05 17:20:55 +00:00
|
|
|
public ?string $invite_url;
|
2023-02-02 15:45:17 +00:00
|
|
|
|
2023-02-05 17:20:55 +00:00
|
|
|
public ?string $role_id;
|
2023-02-02 15:45:17 +00:00
|
|
|
|
|
|
|
public static function group(): string
|
|
|
|
{
|
|
|
|
return 'discord';
|
|
|
|
}
|
2023-02-03 16:38:03 +00:00
|
|
|
|
|
|
|
public static function encrypted(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'bot_token',
|
|
|
|
'client_id',
|
|
|
|
'client_secret'
|
|
|
|
];
|
|
|
|
}
|
2023-02-02 15:45:17 +00:00
|
|
|
}
|