Constructor
# new CoffeeChats(activityInfo, numOfTeams)
Basic constructor for a coffee chats.
Parameters:
Name | Type | Description |
---|---|---|
activityInfo |
Activity.ActivityInfo | |
numOfTeams |
Number |
Extends
Members
Collection.<Number, Array.<GuildMember>>
# teams
A collection of the groups that will attend this coffee chat.
Methods
# async addChannel(channel, userId)
Add a channel to the activity, prompts user for info and name.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | channel to prompt user for specified voice channel |
userId |
String | user to prompt for specified voice channel |
# protected addDefaultFeatures()
Adds the default features to the activity, these features are available to all activities.
# addTeamSlot()
Add a team slot to the activity and adds a voice channel for them.
# async archive(archiveCategory)
Archive the activity. Move general text channel to archive category, remove all remaining channels
and remove the category.
Parameters:
Name | Type | Description |
---|---|---|
archiveCategory |
CategoryChannel | the category where the general text channel will be moved to |
# async delete()
Delete all the channels and the category. Remove the workshop from firebase.
# async distributeStamp(channel, userId)
Will let hackers get a stamp for attending the activity.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | channel to prompt user for specified voice channel |
userId |
String | user to prompt for specified voice channel |
# groupShuffle()
Shuffle users from general voice to all other voice channel. Groups will stay on the same voice channel.
# async init(channel, userId) → {Promise.<CoffeeChats>}
Initializes the activity by creating the necessary channels.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | |
userId |
String |
Promise.<CoffeeChats>
# async removeChannel(channel, userId)
Removes a channel from the activity, the user will decide which. Wont delete channels in the safeChannel map.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | channel to prompt user for specified voice channel |
userId |
String | user to prompt for specified voice channel |
# resetTeams()
Resets the teams to have no teams.
# async roleShuffle(channel, userId)
Shuffles users with a specific role throughout the activity's voice channels
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | channel to prompt user for specified voice channel |
userId |
String | user to prompt for specified voice channel |
# async ruleValidation(channel, userId)
Will lock the channels behind an emoji collector.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | channel to prompt user for specified voice channel |
userId |
String | user to prompt for specified voice channel |
# async voiceCallBack(channel, userId)
Move all users back to a specified voice channel from the activity's voice channels.
Parameters:
Name | Type | Description |
---|---|---|
channel |
TextChannel | channel to prompt user for specified voice channel |
userId |
String | user to prompt for specified voice channel |