From 43d40f40ccc6ce15045ee43b1107cb9ac5dc2685 Mon Sep 17 00:00:00 2001 From: didinele Date: Wed, 4 Sep 2024 20:35:33 +0300 Subject: [PATCH] fix: remove proxy url --- .../builders/src/messages/embed/Assertions.ts | 2 -- .../builders/src/messages/embed/EmbedAuthor.ts | 18 ------------------ .../builders/src/messages/embed/EmbedFooter.ts | 18 ------------------ 3 files changed, 38 deletions(-) diff --git a/packages/builders/src/messages/embed/Assertions.ts b/packages/builders/src/messages/embed/Assertions.ts index 733f9717da95e..522e3c0ce0781 100644 --- a/packages/builders/src/messages/embed/Assertions.ts +++ b/packages/builders/src/messages/embed/Assertions.ts @@ -24,14 +24,12 @@ export const embedFieldPredicate = z.object({ export const embedAuthorPredicate = z.object({ name: namePredicate, icon_url: iconURLPredicate.optional(), - proxy_icon_url: iconURLPredicate.optional(), url: URLPredicate.optional(), }); export const embedFooterPredicate = z.object({ text: z.string().min(1).max(2_048), icon_url: iconURLPredicate.optional(), - proxy_icon_url: iconURLPredicate.optional(), }); export const embedPredicate = z diff --git a/packages/builders/src/messages/embed/EmbedAuthor.ts b/packages/builders/src/messages/embed/EmbedAuthor.ts index f9b45dcd8c724..c2d3637bcbaa1 100644 --- a/packages/builders/src/messages/embed/EmbedAuthor.ts +++ b/packages/builders/src/messages/embed/EmbedAuthor.ts @@ -63,24 +63,6 @@ export class EmbedAuthorBuilder { return this; } - /** - * Sets the proxy icon URL for this embed author. - * - * @param proxyIconURL - The proxy icon URL to use - */ - public setProxyIconURL(proxyIconURL: string): this { - this.data.proxy_icon_url = proxyIconURL; - return this; - } - - /** - * Clears the proxy icon URL for this embed author. - */ - public clearProxyIconURL(): this { - this.data.proxy_icon_url = undefined; - return this; - } - /** * Serializes this builder to API-compatible JSON data. * diff --git a/packages/builders/src/messages/embed/EmbedFooter.ts b/packages/builders/src/messages/embed/EmbedFooter.ts index de6ff49dc9dbe..5b3e0c0f85436 100644 --- a/packages/builders/src/messages/embed/EmbedFooter.ts +++ b/packages/builders/src/messages/embed/EmbedFooter.ts @@ -45,24 +45,6 @@ export class EmbedFooterBuilder { return this; } - /** - * Sets the proxy icon URL for this embed footer. - * - * @param proxyIconURL - The proxy icon URL to use - */ - public setProxyIconURL(proxyIconURL: string): this { - this.data.proxy_icon_url = proxyIconURL; - return this; - } - - /** - * Clears the proxy icon URL for this embed footer. - */ - public clearProxyIconURL(): this { - this.data.proxy_icon_url = undefined; - return this; - } - /** * Serializes this builder to API-compatible JSON data. *