A builder that creates API-compatible JSON data for embeds.
Appends fields to the embed.
RemarksThis method accepts either an array of fields or a variable number of field parameters. The maximum amount of fields that can be added is 25.
ExampleUsing an array:
ExampleUsing rest parameters (variadic):
Sets the author of this embed.
Sets the color of this embed.
Sets the description of this embed.
Sets the fields for this embed.
RemarksThis method is an alias for spliceFields. More specifically, it splices the entire array of fields, replacing them with the provided fields.You can set a maximum of 25 fields.
Sets the footer of this embed.
Sets the thumbnail of this embed.
Sets the timestamp of this embed.
Removes, replaces, or inserts fields for this embed.
RemarksThis method behaves similarly to Array.prototype.splice(). The maximum amount of fields that can be added is 25.It's useful for modifying and adjusting order of the already-existing fields of an embed.
ExampleRemove the first field:
ExampleRemove the first n fields:
ExampleRemove the last field:
Serializes this builder to API-compatible JSON data.