-
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
php laracord bot:admin MySuperSecretId
ErrorException
Array to string conversion
at vendor\laracord\framework\src\Console\Commands\AdminCommand.php:81
77▕ $token = $this->getBotClass()::make($this)->getToken();
78▕
79▕ $request = Http::withHeaders([
80▕ 'Authorization' => "Bot {$token}",
➜ 81▕ ])->get("https://discord.com/api/users/{$user}");
82▕
83▕ if ($request->failed()) {
84▕ $this->components->error('Failed to fetch user data from Discord API.');
85▕
1 vendor\laracord\framework\src\Console\Commands\AdminCommand.php:81
Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap{closure}("Array to string conversion", "D:\dev<MyProjectName>\vendor\laracord\framework\src\Console\Commands\AdminCommand.php")
2 vendor\laracord\framework\src\Console\Commands\AdminCommand.php:63
Laracord\Console\Commands\AdminCommand::handleAdmin()