refactor: update Embed structure to remove fields and adjust image source handling
This commit is contained in:
@@ -22,10 +22,10 @@ export async function requestWorker(requestString: string){
|
||||
for (const img of response) {
|
||||
stack.push(new Embed(
|
||||
`ID: ${img.id}`,
|
||||
img.file_url,
|
||||
img.source,
|
||||
new EmbedAuthor(img.owner),
|
||||
[new EmbedField("Tags", img.tags, true)],
|
||||
new EmbedImage(img.preview_url, img.height, img.width)
|
||||
// [new EmbedField("Tags", img.tags, true)],
|
||||
new EmbedImage(img.file_url, img.height, img.width)
|
||||
))
|
||||
}
|
||||
return stack
|
||||
|
||||
Reference in New Issue
Block a user