mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
docs(Team*): fix appliction -> team, tag -> mention
This commit is contained in:
@@ -62,7 +62,7 @@ class Team extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The timestamp the app was created at
|
* The timestamp the team was created at
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
@@ -71,7 +71,7 @@ class Team extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The time the app was created at
|
* The time the team was created at
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
@@ -80,7 +80,7 @@ class Team extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A link to the application's icon.
|
* A link to the teams's icon.
|
||||||
* @param {ImageURLOptions} [options={}] Options for the Image URL
|
* @param {ImageURLOptions} [options={}] Options for the Image URL
|
||||||
* @returns {?string} URL to the icon
|
* @returns {?string} URL to the icon
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -22,13 +22,13 @@ class TeamMember extends Base {
|
|||||||
|
|
||||||
_patch(data) {
|
_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[]}
|
* @type {string[]}
|
||||||
*/
|
*/
|
||||||
this.permissions = data.permissions;
|
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}
|
* @type {MembershipStates}
|
||||||
*/
|
*/
|
||||||
this.membershipState = MembershipStates[data.membership_state];
|
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.
|
* TeamMember object.
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
* @example
|
* @example
|
||||||
* // Logs: Team Member's tag: @Hydrabolt
|
* // Logs: Team Member's mention: <@123456789012345678>
|
||||||
* console.log(`Team Member's tag: ${teamMember}`);
|
* console.log(`Team Member's mention: ${teamMember}`);
|
||||||
*/
|
*/
|
||||||
toString() {
|
toString() {
|
||||||
return this.user.toString();
|
return this.user.toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user