Skip to content

Commit

Permalink
Merge pull request #385 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
 kcad iajc
  • Loading branch information
JoshuaMicallefYBSU authored Oct 22, 2024
2 parents 8a4086a + f5cec42 commit 3684df7
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions app/Jobs/DiscordAccountCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ public function handle()
if($user->discord_user_id == 350995372627197954){
continue;
}

// Skip Joshua (Broken for him)
if($user->discord_user_id == 200426385863344129){
continue;
}

// Roles Calculation
{
Expand Down Expand Up @@ -240,12 +245,14 @@ public function handle()
}

// Update user
$discord->getClient()->patch('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$user->discord_user_id, [
'json' => [
'nick' => $name,
'roles' => $rolesToAdd,
]
]);
// $discord->getClient()->patch('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$user->discord_user_id, [
// 'json' => [
// 'nick' => $name,
// 'roles' => $discord_roles,
// ]
// ]);

$discord->sendMessageWithEmbed('488265136696459292', 'Roles: '. $user->fullName('FLC'), $discord_roles);


} else {
Expand Down

0 comments on commit 3684df7

Please sign in to comment.