Optional
authorThe author of the embed.
Optional
colorThe color of the embed.
Optional
descriptionThe description of the embed.
The fields of the embed.
Optional
footerThe footer of the embed.
Optional
imageThe image of the embed.
Optional
thumbnailThe thumbnail of the embed.
Optional
timestampThe timestamp of the embed.
Optional
titleThe title of the embed.
Optional
urlThe URL of the embed.
Add a field to the embed.
The embed builder.
// Add a field to the embed.
embed.addField('Field Name', 'Field Value');
// Add a inline field to the embed.
embed.addField('Field Name', 'Field Value', true);
The name of the field.
The value of the field.
Optional
inline: booleanWhether the field is inline.
Set the author of the embed.
The embed builder.
// Set the author of the embed with a name.
embed.setAuthor('Author Name');
// Set the author of the embed with a name, icon, and URL.
embed.setAuthor({ name: 'Author Name', icon_url: 'https://example.com', url: 'https://example.com' });
Optional
author: string | APIEmbedAuthorThe author of the embed.
Set the color of the embed.
The embed builder.
// Set the color of the embed with a hex color.
embed.setColor(0xFFFFFF);
embed.setColor('#FFFFFF');
// Set the color of the embed with a preset color.
embed.setColor('WHITE');
// Set the color of the embed with RGB values.
embed.setColor([255, 255, 255]);
Optional
color: ColorResolvableThe color of the embed.
Set the fields of the embed.
The embed builder.
embed.setFields([{ name: 'Field Name', value: 'Field Value' }]);
Optional
fields: APIEmbedField[]The fields of the embed.
Set the footer of the embed.
The embed builder.
embed.setFooter('Footer Text', 'https://example.com');
Optional
text: stringThe text of the footer.
Optional
iconUrl: stringThe icon URL of the footer.
Set the timestamp of the embed.
The embed builder.
// Set the timestamp of the embed with an ISO 8601 date.
embed.setTimestamp('2022-01-01T00:00:00.000Z');
// Set the timestamp of the embed with a number of milliseconds since the epoch.
embed.setTimestamp(1640995200000);
// Set the timestamp of the embed with a Date object.
embed.setTimestamp(new Date('2022-01-01T00:00:00.000Z'));
Optional
timestamp: string | number | DateThe timestamp of the embed.
The embed builder for Guilded embeds.
Example