Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions app/Notifications/Banking/AuditResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,22 +190,24 @@ public function toDiscord($notifiable)

$embed = [
'title' => 'Membership Audit Results',
'description' => 'Each day, HMS produces an update of changes in the membership. This is a summary.',
'fields' => [
[
// Adding text to the value rather than the name, because Discord always renders the name in bold and that would look horrible.
'name' => 'New Members',
'value' => $approveCount,
'value' => "We have seen a payment from $approveCount new members.", // Has to be double quotes for interpolation
],
[
'name' => 'Notified Members',
'value' => $warnCount,
'value' => "We have not seen a payment from $warnCount members recently, so they may soon have their membership revoked.",
],
[
'name' => 'Revoked Members',
'value' => $revokeCount,
'value' => "The last payment from $revokeCount members was too long ago, so their membership has been revoked.",
],
[
'name' => 'Reinstated Members',
'value' => $reinstateCount,
'value' => "$reinstateCount members have started paying again, so their membership has been reinstated.",
],
],
];
Expand Down