Constructor
# new StartTeamRoulette()
Extends
Members
Methods
# async assignGroupOf2() → {Promise.<(Team|null)>}
Will assign a team of 2 with a team of 2 or two of 1
- module:this.groupList
Promise.<(Team|null)>
# async assignGroupOf3() → {Promise.<(Team|null)>}
Will assign a team of 3 with a team of 1.
- module:this.groupList
Promise.<(Team|null)>
# async assignGroupsOf1() → {Promise.<(Team|null)>}
Assigns 4 groups of 1 together.
Promise.<(Team|null)>
# async getOrCreateChannel(promptChannel, promptId, guildChannelManager) → {Promise.<TextChannel>}
Ask user if new channels are needed, if so create them, else ask for current channels to use for TR.
Parameters:
Name | Type | Description |
---|---|---|
promptChannel |
TextChannel | channel to prompt on |
promptId |
Snowflake | user's ID to prompt |
guildChannelManager |
GuildChannelManager | manager to create channels |
Throws an error if the user cancels either of the two Prompts, the command should quit!
Promise.<TextChannel>
# removeMemberFromTeam(team, teamMember) → {Number}
Will remove the team member from the team, notify the user of success, and remove the team from the teamList
Parameters:
Name | Type | Description |
---|---|---|
team |
Team | the team to remove user from |
teamMember |
User | the user to remove from the team |
- the new size of the team
Number
# async runCommand(botGuild, message)
Parameters:
Name | Type | Description |
---|---|---|
botGuild |
BotGuildModel | |
message |
Message | the message in which the command was run |
# async runTeamCreator(channelManager)
Will try to create a team and set them up for success!
Parameters:
Name | Type | Description |
---|---|---|
channelManager |
GuildChannelManager |