Skip to content

Commit

Permalink
docs(MessageEmbed): deprecation advisory for type (#5774)
Browse files Browse the repository at this point in the history
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com>
Co-authored-by: Noel <icrawltogo@gmail.com>
  • Loading branch information
3 people committed Jun 10, 2021
1 parent 097c7b9 commit f5f3f77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/structures/MessageEmbed.js
Expand Up @@ -45,6 +45,7 @@ class MessageEmbed {
* * `article` - an article embed
* * `link` - a link embed
* @type {string}
* @deprecated
*/
this.type = data.type || 'rich';

Expand Down
1 change: 1 addition & 0 deletions typings/index.d.ts
Expand Up @@ -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;
Expand Down

0 comments on commit f5f3f77

Please sign in to comment.