mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +00:00
Fix message docs
This commit is contained in:
parent
5f5ee18543
commit
1298fefa2f
2 changed files with 6 additions and 6 deletions
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue