From f5f3f772865ee98bbb44df938e0e71f9f8865c10 Mon Sep 17 00:00:00 2001 From: Tyler Resch Date: Thu, 10 Jun 2021 14:35:35 -0400 Subject: [PATCH] docs(MessageEmbed): deprecation advisory for type (#5774) Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com> Co-authored-by: Noel --- src/structures/MessageEmbed.js | 1 + typings/index.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/structures/MessageEmbed.js b/src/structures/MessageEmbed.js index 1b591a9041e0..dc12fe8f2661 100644 --- a/src/structures/MessageEmbed.js +++ b/src/structures/MessageEmbed.js @@ -45,6 +45,7 @@ class MessageEmbed { * * `article` - an article embed * * `link` - a link embed * @type {string} + * @deprecated */ this.type = data.type || 'rich'; diff --git a/typings/index.d.ts b/typings/index.d.ts index cdd4896395e3..5142518ce861 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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;