diff --git a/src/plugins/rule34/plugin.ts b/src/plugins/rule34/plugin.ts index 8800475..f3ef8ed 100644 --- a/src/plugins/rule34/plugin.ts +++ b/src/plugins/rule34/plugin.ts @@ -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 diff --git a/src/structures/embeds.ts b/src/structures/embeds.ts index 8198a98..39a61e4 100644 --- a/src/structures/embeds.ts +++ b/src/structures/embeds.ts @@ -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 } }