refactor: update Embed structure to remove fields and adjust image source handling
This commit is contained in:
@@ -6,7 +6,7 @@ export class Embed implements DiscordEmbed{
|
||||
title: string
|
||||
url: string
|
||||
author: DiscordEmbedAuthor
|
||||
fields: Field[]
|
||||
// fields: DiscordEmbedField[]
|
||||
image: DiscordEmbedImage
|
||||
// timestamp: Time
|
||||
|
||||
@@ -14,13 +14,13 @@ export class Embed implements DiscordEmbed{
|
||||
title: string,
|
||||
url: string,
|
||||
author:DiscordEmbedAuthor,
|
||||
fields: EmbedField[],
|
||||
// fields: EmbedField[],
|
||||
image: DiscordEmbedImage,
|
||||
){
|
||||
this.title = title
|
||||
this.url = url
|
||||
this.author = author
|
||||
this.fields= fields
|
||||
// this.fields= fields
|
||||
this.image = image
|
||||
|
||||
}
|
||||
@@ -29,7 +29,7 @@ export class Embed implements DiscordEmbed{
|
||||
title: this.title,
|
||||
url : this.url,
|
||||
author: this.author,
|
||||
fields: this.fields,
|
||||
// fields: this.fields,
|
||||
image: this.image
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user