mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(MessageEmbed): deprecation advisory for type (#5774)
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com> Co-authored-by: Noel <icrawltogo@gmail.com>
This commit is contained in:
@@ -45,6 +45,7 @@ class MessageEmbed {
|
||||
* * `article` - an article embed
|
||||
* * `link` - a link embed
|
||||
* @type {string}
|
||||
* @deprecated
|
||||
*/
|
||||
this.type = data.type || 'rich';
|
||||
|
||||
|
||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -1375,6 +1375,7 @@ declare module 'discord.js' {
|
||||
public thumbnail: MessageEmbedThumbnail | null;
|
||||
public timestamp: number | null;
|
||||
public title: string | null;
|
||||
/** @deprecated */
|
||||
public type: string;
|
||||
public url: string | null;
|
||||
public readonly video: MessageEmbedVideo | null;
|
||||
|
||||
Reference in New Issue
Block a user