From 833b7b533cd2b6d7eda67e23bdafd44cec9253b7 Mon Sep 17 00:00:00 2001 From: JoshuaMicallefYBSU <91457812+JoshuaMicallefYBSU@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:26:25 +1000 Subject: [PATCH] Update DiscordAccountCheck.php --- app/Jobs/DiscordAccountCheck.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Jobs/DiscordAccountCheck.php b/app/Jobs/DiscordAccountCheck.php index 7b3328b6..ae1eb01f 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -190,23 +190,23 @@ public function handle() array_push($rolesToAdd, $staffRoleIDs['senior_staff']); break; case 'Deputy FIR Chief': - array_push($rolesToAdd, $discordRoleIds['deputy_oca_chief']); + array_push($rolesToAdd, $staffRoleIDs['deputy_oca_chief']); array_push($rolesToAdd, $staffRoleIDs['senior_staff']); break; case 'Chief Instructor': - array_push($rolesToAdd, $discordRoleIds['chief_instructor']); + array_push($rolesToAdd, $staffRoleIDs['chief_instructor']); array_push($rolesToAdd, $staffRoleIDs['senior_staff']); break; case 'Events and Marketing Director': - array_push($rolesToAdd, $discordRoleIds['events_marketing_director']); + array_push($rolesToAdd, $staffRoleIDs['events_marketing_director']); array_push($rolesToAdd, $staffRoleIDs['senior_staff']); break; case 'Operations Director': - array_push($rolesToAdd, $discordRoleIds['operations_director']); + array_push($rolesToAdd, $staffRoleIDs['operations_director']); array_push($rolesToAdd, $staffRoleIDs['senior_staff']); break; case 'IT Director': - array_push($rolesToAdd, $discordRoleIds['it_director']); + array_push($rolesToAdd, $staffRoleIDs['it_director']); array_push($rolesToAdd, $staffRoleIDs['senior_staff']); break; } @@ -269,7 +269,7 @@ public function handle() $accounts_not_linked++; //records that Account Not Linked Role Assigned sleep(2); - + // add role $discord->getClient()->put('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$discord_uid.'/roles/1297422968472997908'); }