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:
Tyler Resch
2021-06-10 14:35:35 -04:00
committed by GitHub
parent 097c7b9cdd
commit f5f3f77286
2 changed files with 2 additions and 0 deletions

View File

@@ -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
View File

@@ -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;