feat: add and remove members from a team
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user