Skip to content

Commit e708d3e

Browse files
author
Di Nguyen
committed
Modified .member to have uwid optional, and added membership explanation when no uwid is passed
1 parent c05c019 commit e708d3e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/commandDetails/miscellaneous/member.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,20 @@ type UwIdType = string | undefined;
2424
*/
2525
const getMemberEmbed = async (uwid: UwIdType): Promise<EmbedBuilder> => {
2626
const title = 'CSC Membership Information';
27+
const EXPLAIN_MEMBERSHIP = `Oops! You didn't provide a UW ID.
28+
29+
If you're already a CSC member, please provide a UW ID.
30+
31+
If not, perhaps you're interested in becoming one?
32+
33+
Being a CSC member comes with gaining access to CSC machines, cloud, email, web hosting, and more! Additional details can be found here! https://csclub.uwaterloo.ca/resources/services/
34+
35+
To sign up, you can follow the instructions here! https://csclub.uwaterloo.ca/get-involved/`;
2736
if (!uwid) {
2837
return new EmbedBuilder()
2938
.setColor('Red')
3039
.setTitle(title)
31-
.setDescription('Please provide a UW ID!');
40+
.setDescription(EXPLAIN_MEMBERSHIP);
3241
}
3342

3443
const members = (await (await fetch(MEMBER_API)).json()).members as memberStatus[];
@@ -82,7 +91,7 @@ export const memberCommandDetails: CodeyCommandDetails = {
8291
name: 'uwid',
8392
description: 'The Quest ID of the user.',
8493
type: CodeyCommandOptionType.STRING,
85-
required: true,
94+
required: false,
8695
},
8796
],
8897
subcommandDetails: {},

0 commit comments

Comments
 (0)