mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 12:20:23 +00:00
docs: doc changes
This commit is contained in:
parent
d93d628f19
commit
2e0048add1
3 changed files with 5 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ const GuildChannel = require('./GuildChannel');
|
|||
*/
|
||||
class CategoryChannel extends GuildChannel {
|
||||
/**
|
||||
* Channels that are part of this category
|
||||
* Channels that are a part of this category
|
||||
* @type {?Collection<Snowflake, GuildChannel>}
|
||||
* @readonly
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class GuildMember extends Base {
|
|||
this.guild = guild;
|
||||
|
||||
/**
|
||||
* The user that this guild member instance Represents
|
||||
* The user that this guild member instance represents
|
||||
* @type {User}
|
||||
*/
|
||||
this.user = {};
|
||||
|
|
@ -322,7 +322,7 @@ class GuildMember extends Base {
|
|||
}
|
||||
|
||||
/**
|
||||
* Mute/unmutes a user.
|
||||
* Mutes/unmutes a user.
|
||||
* @param {boolean} mute Whether or not the member should be muted
|
||||
* @param {string} [reason] Reason for muting or unmuting
|
||||
* @returns {Promise<GuildMember>}
|
||||
|
|
@ -332,7 +332,7 @@ class GuildMember extends Base {
|
|||
}
|
||||
|
||||
/**
|
||||
* Deafen/undeafens a user.
|
||||
* Deafens/undeafens a user.
|
||||
* @param {boolean} deaf Whether or not the member should be deafened
|
||||
* @param {string} [reason] Reason for deafening or undeafening
|
||||
* @returns {Promise<GuildMember>}
|
||||
|
|
|
|||
|
|
@ -198,6 +198,7 @@ class Message extends Base {
|
|||
* Represents the author of the message as a guild member.
|
||||
* Only available if the message comes from a guild where the author is still a member
|
||||
* @type {?GuildMember}
|
||||
* @readonly
|
||||
*/
|
||||
get member() {
|
||||
return this.guild ? this.guild.member(this.author) || null : null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue