Constructor
# new TeamFormation(teamFormationInfo)
Create a new team formation.
Parameters:
Name | Type | Description |
---|---|---|
teamFormationInfo |
TeamFormationInfo | the team formation information |
Members
Boolean
# isNotificationEnabled
True if the parties will be notified when the opposite party has a new post.
TeamFormationPartyInfo
# prospectInfo
The prospect info, those solo users that want to join a team will use this info.
SignupEmbedCreator
# signupEmbedCreator
A creator of the info embed in case you want it to be different.
Methods
# async static createProspectRole(roleManager) → {Promise.<Role>}
Creates the prospect role and returns it.
Parameters:
Name | Type | Description |
---|---|---|
roleManager |
RoleManager |
Promise.<Role>
# async static createTeamRole(roleManager) → {Promise.<Role>}
Creates the team role and returns it.
Parameters:
Name | Type | Description |
---|---|---|
roleManager |
RoleManager |
Promise.<Role>
# async createChannels()
Will create the TeamFormationChannels object with new channels to use with a new TeamFormation
# async gatherForm(user, isTeam) → {Promise.<Message>}
Will gather the form from a user to add to the catalogues and send it to the correct channel.
Parameters:
Name | Type | Description |
---|---|---|
user |
User | the user being prompted |
isTeam |
Boolean | true if the user is a team looking for members |
Error if user cancels or takes too long to respond to prompt
- the catalogue message
Promise.<Message>
# async reachOutToUser(user, isTeam)
Will reach out to the user to ask for the form response to add to the catalogue.
Parameters:
Name | Type | Description |
---|---|---|
user |
User | the user joining the team formation activity |
isTeam |
Boolean | true if the user represents a team, else false |
# async start(signupEmbedCreatoropt)
Will start the activity!
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
signupEmbedCreator |
SignupEmbedCreator |
<optional> |
null | embed creator for the sign in |