From f7b0667e4780b6f8491da67a72194af10c4522df Mon Sep 17 00:00:00 2001 From: JoshuaMicallefYBSU <91457812+JoshuaMicallefYBSU@users.noreply.github.com> Date: Sun, 20 Oct 2024 22:48:01 +1000 Subject: [PATCH] Update DiscordAccountCheck.php --- app/Jobs/DiscordAccountCheck.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Jobs/DiscordAccountCheck.php b/app/Jobs/DiscordAccountCheck.php index ddd29769..b65c37e8 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -71,7 +71,7 @@ public function handle() } // Add a Sleep Timer - Allows API to not block - sleep(2); + sleep(6); // Check if user is currently in Discord if (in_array($user->discord_user_id, $discord_uids)) { @@ -199,8 +199,6 @@ public function handle() foreach($discord_uids as $discord_uid){ $accounts_not_linked++; //records that Account Not Linked Role Assigned - sleep(3); - // add role $discord->getClient()->put('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$discord_uid.'/roles/1297422968472997908');