docs(Team*): fix appliction -> team, tag -> mention

This commit is contained in:
SpaceEEC
2019-06-26 11:42:03 +02:00
parent 61e2e3e1ad
commit 4c11347511
2 changed files with 8 additions and 8 deletions

View File

@@ -22,13 +22,13 @@ class TeamMember extends Base {
_patch(data) {
/**
* The permissions this Team Member has with reguard to the team
* The permissions this Team Member has with regard to the team
* @type {string[]}
*/
this.permissions = data.permissions;
/**
* The permissions this Team Member has with reguard to the team
* The permissions this Team Member has with regard to the team
* @type {MembershipStates}
*/
this.membershipState = MembershipStates[data.membership_state];
@@ -50,12 +50,12 @@ class TeamMember extends Base {
}
/**
* When concatenated with a string, this automatically returns the team members's tag instead of the
* When concatenated with a string, this automatically returns the team members's mention instead of the
* TeamMember object.
* @returns {string}
* @example
* // Logs: Team Member's tag: @Hydrabolt
* console.log(`Team Member's tag: ${teamMember}`);
* // Logs: Team Member's mention: <@123456789012345678>
* console.log(`Team Member's mention: ${teamMember}`);
*/
toString() {
return this.user.toString();