Chameleon
Preparing search index...
EmbedBuilder
Class EmbedBuilder
Index
Constructors
constructor
Methods
set
Title
set
Description
set
Color
set
URL
set
Timestamp
set
Footer
set
Author
set
Image
set
Thumbnail
add
Field
add
Fields
build
to
JSON
Constructors
constructor
new
EmbedBuilder
(
data
?:
Partial
<
Embed
>
)
:
EmbedBuilder
Parameters
Optional
data
:
Partial
<
Embed
>
Returns
EmbedBuilder
Methods
set
Title
setTitle
(
title
:
string
)
:
this
Parameters
title
:
string
Returns
this
set
Description
setDescription
(
description
:
string
)
:
this
Parameters
description
:
string
Returns
this
set
Color
setColor
(
color
:
number
)
:
this
Parameters
color
:
number
Returns
this
set
URL
setURL
(
url
:
string
)
:
this
Parameters
url
:
string
Returns
this
set
Timestamp
setTimestamp
(
ts
?:
number
|
Date
)
:
this
Parameters
ts
:
number
|
Date
= ...
Returns
this
set
Footer
setFooter
(
text
:
string
,
iconUrl
?:
string
)
:
this
Parameters
text
:
string
Optional
iconUrl
:
string
Returns
this
set
Author
setAuthor
(
name
:
string
,
iconUrl
?:
string
,
url
?:
string
)
:
this
Parameters
name
:
string
Optional
iconUrl
:
string
Optional
url
:
string
Returns
this
set
Image
setImage
(
url
:
string
)
:
this
Parameters
url
:
string
Returns
this
set
Thumbnail
setThumbnail
(
url
:
string
)
:
this
Parameters
url
:
string
Returns
this
add
Field
addField
(
name
:
string
,
value
:
string
,
inline
?:
boolean
)
:
this
Parameters
name
:
string
value
:
string
inline
:
boolean
= false
Returns
this
add
Fields
addFields
(
...
fields
:
EmbedField
[]
)
:
this
Parameters
...
fields
:
EmbedField
[]
Returns
this
build
build
()
:
Embed
Returns
Embed
to
JSON
toJSON
()
:
Record
<
string
,
unknown
>
Returns
Record
<
string
,
unknown
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
set
Title
set
Description
set
Color
set
URL
set
Timestamp
set
Footer
set
Author
set
Image
set
Thumbnail
add
Field
add
Fields
build
to
JSON
Chameleon
Loading...