Skip to content

Commit

Permalink
feat(signups): add prog point to embed (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilve1989 authored May 15, 2024
1 parent bd6bbfb commit 9fc2aae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('Send Signup Review Command Handler', () => {
screenshot: 'http://somelinksurely',
status: SignupStatus.PENDING,
world: 'bar',
progPointRequested: 'baz',
});

beforeEach(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class SendSignupReviewCommandHandler
screenshot,
world,
role,
progPointRequested,
}: SignupDocument) {
let embed = new EmbedBuilder()
.setDescription(
Expand All @@ -98,11 +99,16 @@ class SendSignupReviewCommandHandler
{ name: 'Home World', value: capitalCase(world), inline: true },
{ name: 'Availability', value: availability, inline: true },
{ name: 'Job', value: role, inline: true },
{ name: 'Prog Point', value: progPointRequested, inline: true },
]);

if (proofOfProgLink) {
embed = embed.addFields([
{ name: 'Prog Proof Link', value: `[View](${proofOfProgLink})` },
{
name: 'Prog Proof Link',
value: `[View](${proofOfProgLink})`,
inline: true,
},
]);
}

Expand Down

0 comments on commit 9fc2aae

Please sign in to comment.