mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
docs: doc changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user