From 96d2c08fab63c3f3202c3c258db068ae263ab8de Mon Sep 17 00:00:00 2001 From: JoshuaMicallefYBSU <91457812+JoshuaMicallefYBSU@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:53:58 +1000 Subject: [PATCH 1/2] 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 6432b664..e5f43cd1 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -325,12 +325,12 @@ public function handle() 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' => $name, - 'roles' => $discord_roles, - ] - ]); + // $discord->getClient()->patch('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$user->discord_user_id, [ + // 'json' => [ + // 'nick' => $name, + // 'roles' => $discord_roles, + // ] + // ]); // add role $discord->getClient()->put('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$discord_uid.'/roles/1297422968472997908'); From 5854dfabdcd221e580e86dae14a8ee59df3ba3cf Mon Sep 17 00:00:00 2001 From: JoshuaMicallefYBSU <91457812+JoshuaMicallefYBSU@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:55:13 +1000 Subject: [PATCH 2/2] Update DiscordAccountCheck.php --- app/Jobs/DiscordAccountCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/DiscordAccountCheck.php b/app/Jobs/DiscordAccountCheck.php index e5f43cd1..df2619a6 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -83,7 +83,7 @@ public function handle() $in_discord++; foreach($discord_member_contents as $discord_members2){ - if ($discord_members2['user']['id'] == $discord_uid) { + if ($discord_members2['user']['id'] === $discord_uid) { $discord_member = $discord_members2; } }