Skip to content

Commit

Permalink
Merge pull request #399 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Joshua branch
  • Loading branch information
JoshuaMicallefYBSU authored Oct 25, 2024
2 parents 1528b18 + 5854dfa commit 9035f78
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/Jobs/DiscordAccountCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 9035f78

Please sign in to comment.