mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs: general cleanup and improvements (#6299)
Co-authored-by: DaStormer <40336269+DaStormer@users.noreply.github.com> Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
@@ -44,13 +44,14 @@ class MessageEmbed {
|
||||
setup(data, skipValidation) {
|
||||
/**
|
||||
* The type of this embed, either:
|
||||
* * `rich` - a rich embed
|
||||
* * `rich` - a generic embed rendered from embed attributes
|
||||
* * `image` - an image embed
|
||||
* * `video` - a video embed
|
||||
* * `gifv` - a gifv embed
|
||||
* * `gifv` - an animated gif image embed rendered as a video embed
|
||||
* * `article` - an article embed
|
||||
* * `link` - a link embed
|
||||
* @type {string}
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#embed-object-embed-types}
|
||||
* @deprecated
|
||||
*/
|
||||
this.type = data.type ?? 'rich';
|
||||
@@ -430,7 +431,7 @@ class MessageEmbed {
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalizes field input and resolves strings.
|
||||
* Normalizes field input and verifies strings.
|
||||
* @param {string} name The name of the field
|
||||
* @param {string} value The value of the field
|
||||
* @param {boolean} [inline=false] Set the field to display inline
|
||||
|
||||
Reference in New Issue
Block a user