From 2778a4c7388db96d955d62264bc766eaf57ea7c9 Mon Sep 17 00:00:00 2001 From: JoshuaMicallefYBSU <91457812+JoshuaMicallefYBSU@users.noreply.github.com> Date: Fri, 6 Dec 2024 15:20:22 +1000 Subject: [PATCH] Update DiscordAccountCheck.php --- app/Jobs/DiscordAccountCheck.php | 56 ++++++++++++++++---------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/app/Jobs/DiscordAccountCheck.php b/app/Jobs/DiscordAccountCheck.php index f37e7d83..36439836 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -315,35 +315,35 @@ public function handle() } // Add Role to Users not Connected to Gander Oceanic - foreach($discord_uids as $discord_uid){ + // foreach($discord_uids as $discord_uid){ - // Skip the Bot (Gander) - if($discord_uid == 1118430230839840768){ - continue; - } - - // Skip the Bot (QFA100) - if($discord_uid == 1133048493850771616){ - continue; - } - - // Skip Server Owner (Gary) - if($discord_uid == 350995372627197954){ - continue; - } - - $accounts_not_linked++; //records that Account Not Linked Role Assigned - - sleep(1); - - // // Update user with main roles - Will temp remove staff roles - $discord->getClient()->patch('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$user->discord_user_id, [ - 'json' => [ - 'nick' => $user->discord_username, - 'roles' => ['1297422968472997908'], - ] - ]); - } + // // Skip the Bot (Gander) + // if($discord_uid == 1118430230839840768){ + // continue; + // } + + // // Skip the Bot (QFA100) + // if($discord_uid == 1133048493850771616){ + // continue; + // } + + // // Skip Server Owner (Gary) + // if($discord_uid == 350995372627197954){ + // continue; + // } + + // $accounts_not_linked++; //records that Account Not Linked Role Assigned + + // sleep(1); + + // // // Update user with main roles - Will temp remove staff roles + // $discord->getClient()->patch('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$user->discord_user_id, [ + // 'json' => [ + // 'nick' => $user->discord_username, + // 'roles' => ['1297422968472997908'], + // ] + // ]); + // } if($user_updated > 0){ // Record Information for Discord