mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Fix message docs
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -9,7 +9,7 @@ class Message {
|
|||||||
this._type = 'message';
|
this._type = 'message';
|
||||||
/**
|
/**
|
||||||
* The channel that the message was sent in
|
* The channel that the message was sent in
|
||||||
* @type {Channel}
|
* @type {TextChannel|DMChannel|GroupDMChannel}
|
||||||
*/
|
*/
|
||||||
this.channel = channel;
|
this.channel = channel;
|
||||||
|
|
||||||
@@ -42,10 +42,6 @@ class Message {
|
|||||||
* @type {User}
|
* @type {User}
|
||||||
*/
|
*/
|
||||||
this.author = this.client.dataManager.newUser(data.author);
|
this.author = this.client.dataManager.newUser(data.author);
|
||||||
/**
|
|
||||||
* The content of the message
|
|
||||||
* @type {String}
|
|
||||||
*/
|
|
||||||
if (this.guild) {
|
if (this.guild) {
|
||||||
/**
|
/**
|
||||||
* Represents the Author of the message as a Guild Member. Only available if the message comes from a Guild
|
* Represents the Author of the message as a Guild Member. Only available if the message comes from a Guild
|
||||||
@@ -54,6 +50,10 @@ class Message {
|
|||||||
*/
|
*/
|
||||||
this.member = this.guild.member(this.author);
|
this.member = this.guild.member(this.author);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* The content of the message
|
||||||
|
* @type {String}
|
||||||
|
*/
|
||||||
this.content = data.content;
|
this.content = data.content;
|
||||||
/**
|
/**
|
||||||
* When the message was sent
|
* When the message was sent
|
||||||
|
|||||||
Reference in New Issue
Block a user