Skip to content

Commit

Permalink
Merge pull request #395 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
DiscordUpdate
  • Loading branch information
JoshuaMicallefYBSU authored Oct 25, 2024
2 parents b50c45e + 7f6308e commit 4b3c769
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Jobs/DiscordAccountCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function handle()
$message .= "\n- $role";
}

if (!empty($rolesToAssign) || !empty($rolesToRemove) || $name !== $discord_member['user']['username']) {
if (!empty($rolesToAssign) || !empty($rolesToRemove) || $name !== $discord_member['nick']) {
$message .= "\n\n**User Roles Updated!**";

sleep(0.5);
Expand All @@ -282,9 +282,11 @@ public function handle()
// add role
$discord->getClient()->put('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$discord_uid.'/roles/'.$role);
}
} else {
$message .= "\n\n**NO UPDATE CONDUCTED**";
}

$discord->sendMessageWithEmbed('1274827382250934365', 'USER: '.$name, $message);
$discord->sendMessageWithEmbed('1299248165551210506', 'USER: '.$name, $message);



Expand Down

0 comments on commit 4b3c769

Please sign in to comment.