refactor: make data public in builders (#7486)

This commit is contained in:
Suneet Tipirneni
2022-02-20 07:43:27 -05:00
committed by GitHub
parent 8dbd34544c
commit ba31203a0a
4 changed files with 8 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ export interface EmbedImageData extends Omit<APIEmbedImage, 'proxy_url'> {
* Represents a non-validated embed in a message (image/video preview, rich embed, etc.)
*/
export class UnsafeEmbed implements Equatable<APIEmbed | UnsafeEmbed> {
protected data: APIEmbed;
public readonly data: APIEmbed;
public constructor(data: APIEmbed = {}) {
this.data = { ...data };