From 1724b2b78da91ac3d524dae6cb567b83c7b38363 Mon Sep 17 00:00:00 2001 From: miguel456 Date: Mon, 22 Aug 2022 23:53:34 +0100 Subject: [PATCH] feat(settings): add api base url to config --- .env.example | 2 ++ config/services.php | 1 + 2 files changed, 3 insertions(+) diff --git a/.env.example b/.env.example index a906e9a..8dcde81 100755 --- a/.env.example +++ b/.env.example @@ -53,8 +53,10 @@ DISCORD_CLIENT_ID= DISCORD_CLIENT_SECRET= DISCORD_BOT_TOKEN= +# Don't touch the base url DISCORD_HOME_GUILD= DISCORD_STAFF_GUILD= +DISCORD_BASE_URL="https://discord.com/api/v9" ARCANEDEV_LOGVIEWER_MIDDLEWARE=web,auth,can:admin.maintenance.logs.view diff --git a/config/services.php b/config/services.php index 48749c2..2a72c74 100755 --- a/config/services.php +++ b/config/services.php @@ -37,6 +37,7 @@ return [ 'client_id' => env('DISCORD_CLIENT_ID'), 'client_secret' => env('DISCORD_CLIENT_SECRET'), 'redirect' => env('DISCORD_REDIRECT_URI'), + 'base_url' => env('DISCORD_BASE_URL'), 'token' => env('DISCORD_BOT_TOKEN'),