Skip to content
Open
Changes from all commits
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' => 'Produced each weekday, this is a sumamry of changes in membership.',
'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.',
],
[
'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