Members
Discord.Collection.<Discord.Snowflake, (Discord.User|Discord.GuildMember)>
# members
All the team members
Methods
# async addTeamMember(user)
Add a new user to the team.
Parameters:
Name | Type | Description |
---|---|---|
user |
Discord.User | Discord.GuildMember | the user to add to the team |
# async createTextChannel(channelManager, category) → {Promise.<Discord.TextChannel>}
Create a text channel for this team and add all the team members.
Will notify the members of the channel creation
Parameters:
Name | Type | Description |
---|---|---|
channelManager |
Discord.ChannelManager | the channel manager to create the text channel |
category |
Discord.CategoryChannel | the category where to create the channel |
Promise.<Discord.TextChannel>
# isComplete()
True if the team has 4 members, false otherwise.
# async mergeTeam(team)
Merge two teams. Team with a text channel, if any will be kept. New
members will be added to the text channel, if any.
Parameters:
Name | Type | Description |
---|---|---|
team |
Team | team to merge into this team |
# removeTeamMember(user) → {Number}
Removes a user from the team.
Parameters:
Name | Type | Description |
---|---|---|
user |
Discord.User | the user to remove from the team |
- the new size of this team
Number