diff --git a/app/Jobs/DiscordAccountCheck.php b/app/Jobs/DiscordAccountCheck.php index 6a7d17bd..5030a24e 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -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); @@ -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);