mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Various documentation adjustments (#2001)
* docs(various): Add "at" to createdAt description * docs(Client): Adjust to fit with guilds property * docs(various): Adjust phrasing & fix typos * docs(various): Clarifications * docs(Permissions): fix numerus * docs(DataStore): capitalize DataStore * docs(various): Formatting changes * docs(Presence): Expand RichPresenceAssets docs * Add space
This commit is contained in:
@@ -55,7 +55,7 @@ class Message extends Base {
|
||||
this.author = this.client.users.create(data.author, !data.webhook_id);
|
||||
|
||||
/**
|
||||
* Represents the author of the message as a guild member
|
||||
* 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}
|
||||
*/
|
||||
@@ -202,7 +202,7 @@ class Message extends Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* The time the message was sent
|
||||
* The time the message was sent at
|
||||
* @type {Date}
|
||||
* @readonly
|
||||
*/
|
||||
@@ -358,7 +358,7 @@ class Message extends Base {
|
||||
*/
|
||||
|
||||
/**
|
||||
* Edit the content of the message.
|
||||
* Edits the content of the message.
|
||||
* @param {StringResolvable} [content] The new content for the message
|
||||
* @param {MessageEditOptions|MessageEmbed} [options] The options to provide
|
||||
* @returns {Promise<Message>}
|
||||
@@ -426,7 +426,7 @@ class Message extends Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a reaction to the message.
|
||||
* Adds a reaction to the message.
|
||||
* @param {EmojiIdentifierResolvable} emoji The emoji to react with
|
||||
* @returns {Promise<MessageReaction>}
|
||||
*/
|
||||
@@ -445,7 +445,7 @@ class Message extends Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all reactions from a message.
|
||||
* Removes all reactions from a message.
|
||||
* @returns {Promise<Message>}
|
||||
*/
|
||||
clearReactions() {
|
||||
@@ -484,7 +484,7 @@ class Message extends Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* Reply to the message.
|
||||
* Replies to the message.
|
||||
* @param {StringResolvable} [content] The content for the message
|
||||
* @param {MessageOptions} [options] The options to provide
|
||||
* @returns {Promise<Message|Message[]>}
|
||||
|
||||
Reference in New Issue
Block a user