feat(embed): add setFields (#7322)

This commit is contained in:
Rodry
2022-01-24 19:26:23 +00:00
committed by GitHub
parent d2d3a80c55
commit bcc5cda8a9
2 changed files with 25 additions and 0 deletions

View File

@@ -170,6 +170,15 @@ export class Embed implements APIEmbed {
return this;
}
/**
* Sets the embed's fields (max 25).
* @param fields The fields to set
*/
public setFields(...fields: APIEmbedField[]) {
this.spliceFields(0, this.fields.length, ...fields);
return this;
}
/**
* Sets the author of this embed
*