feat: remove a team
This commit is contained in:
parent
baf038539b
commit
2c85a763f4
@ -130,6 +130,16 @@ class Team extends Base {
|
||||
await this.client.api.teams[this.id].members[userID].delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete this team
|
||||
* @param {string} code The 2fa code
|
||||
* @returns {Promise<boolean>}
|
||||
*/
|
||||
async delete(code) {
|
||||
await this.client.api.teams[this.id].delete({ data: { code: code } });
|
||||
return this.client.developerPortal.teams.delete(this.id);
|
||||
}
|
||||
|
||||
/**
|
||||
* When concatenated with a string, this automatically returns the Team's name instead of the
|
||||
* Team object.
|
||||
|
Loading…
Reference in New Issue
Block a user