Skip to content

Commit

Permalink
fix: remove proxy url
Browse files Browse the repository at this point in the history
  • Loading branch information
didinele committed Sep 4, 2024
1 parent 461802b commit 43d40f4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 38 deletions.
2 changes: 0 additions & 2 deletions packages/builders/src/messages/embed/Assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 0 additions & 18 deletions packages/builders/src/messages/embed/EmbedAuthor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
18 changes: 0 additions & 18 deletions packages/builders/src/messages/embed/EmbedFooter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 43d40f4

Please sign in to comment.