feat: add and remove members from a team

This commit is contained in:
TheDevYellowy
2022-12-22 03:01:06 -08:00
parent a32c7292df
commit baf038539b
3 changed files with 50 additions and 0 deletions

View File

@@ -46,6 +46,22 @@ class DeveloperPortalManager extends BaseManager {
return this;
}
/**
* Creates a new Team.
* @param {string} name Name of the team
* @returns {Promise<Team>}
*/
async createTeam(name) {
const team = await this.client.api.teams.post({
data: {
name: name,
},
});
this.teams.set(team.id, new Team(this.client, team));
return this.teams.get(team.id);
}
/**
* Creates a new application.
* @param {string} name Name of the application