Search
Preparing search index...
The search index is not available
reacord
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
reacord
ReacordTester
Class ReacordTester
Hierarchy
Reacord
ReacordTester
Index
Constructors
constructor
Accessors
messages
Methods
assert
Messages
assert
Render
find
Button
By
Label
find
Select
By
Placeholder
log
Messages
reply
sample
Messages
send
Constructors
constructor
new
Reacord
Tester
(
)
:
ReacordTester
Returns
ReacordTester
Accessors
messages
get
messages
(
)
:
readonly
TestMessage
[]
Returns
readonly
TestMessage
[]
Methods
assert
Messages
assert
Messages
(
expected
:
{
actionRows
:
(
Omit
<
MessageButtonOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageLinkOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageSelectOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
)
[]
[]
;
content
:
string
;
embeds
:
{
author
:
undefined
|
{ name: string; url?: string | undefined; icon_url?: string | undefined; }
;
color
:
undefined
|
number
;
description
:
undefined
|
string
;
fields
:
undefined
|
{ name: string; value: string; inline?: boolean | undefined; }
[]
;
footer
:
undefined
|
{ text: string; icon_url?: string | undefined; }
;
image
:
undefined
|
{ url: string; }
;
thumbnail
:
undefined
|
{ url: string; }
;
timestamp
:
undefined
|
string
;
title
:
undefined
|
string
;
url
:
undefined
|
string
;
video
:
undefined
|
{ url: string; }
}
[]
}
[]
)
:
Promise
<
void
>
Parameters
expected:
{
actionRows
:
(
Omit
<
MessageButtonOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageLinkOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageSelectOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
)
[]
[]
;
content
:
string
;
embeds
:
{
author
:
undefined
|
{ name: string; url?: string | undefined; icon_url?: string | undefined; }
;
color
:
undefined
|
number
;
description
:
undefined
|
string
;
fields
:
undefined
|
{ name: string; value: string; inline?: boolean | undefined; }
[]
;
footer
:
undefined
|
{ text: string; icon_url?: string | undefined; }
;
image
:
undefined
|
{ url: string; }
;
thumbnail
:
undefined
|
{ url: string; }
;
timestamp
:
undefined
|
string
;
title
:
undefined
|
string
;
url
:
undefined
|
string
;
video
:
undefined
|
{ url: string; }
}
[]
}
[]
Returns
Promise
<
void
>
assert
Render
assert
Render
(
content
:
ReactNode
, expected
:
{
actionRows
:
(
Omit
<
MessageButtonOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageLinkOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageSelectOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
)
[]
[]
;
content
:
string
;
embeds
:
{
author
:
undefined
|
{ name: string; url?: string | undefined; icon_url?: string | undefined; }
;
color
:
undefined
|
number
;
description
:
undefined
|
string
;
fields
:
undefined
|
{ name: string; value: string; inline?: boolean | undefined; }
[]
;
footer
:
undefined
|
{ text: string; icon_url?: string | undefined; }
;
image
:
undefined
|
{ url: string; }
;
thumbnail
:
undefined
|
{ url: string; }
;
timestamp
:
undefined
|
string
;
title
:
undefined
|
string
;
url
:
undefined
|
string
;
video
:
undefined
|
{ url: string; }
}
[]
}
[]
)
:
Promise
<
void
>
Parameters
content:
ReactNode
expected:
{
actionRows
:
(
Omit
<
MessageButtonOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageLinkOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageSelectOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
)
[]
[]
;
content
:
string
;
embeds
:
{
author
:
undefined
|
{ name: string; url?: string | undefined; icon_url?: string | undefined; }
;
color
:
undefined
|
number
;
description
:
undefined
|
string
;
fields
:
undefined
|
{ name: string; value: string; inline?: boolean | undefined; }
[]
;
footer
:
undefined
|
{ text: string; icon_url?: string | undefined; }
;
image
:
undefined
|
{ url: string; }
;
thumbnail
:
undefined
|
{ url: string; }
;
timestamp
:
undefined
|
string
;
title
:
undefined
|
string
;
url
:
undefined
|
string
;
video
:
undefined
|
{ url: string; }
}
[]
}
[]
Returns
Promise
<
void
>
find
Button
By
Label
find
Button
By
Label
(
label
:
string
)
:
{
click
:
(
)
=>
void
}
Parameters
label:
string
Returns
{
click
:
(
)
=>
void
}
click
:
(
)
=>
void
(
)
:
void
Returns
void
find
Select
By
Placeholder
find
Select
By
Placeholder
(
placeholder
:
string
)
:
{
select
:
(
...
values
:
string
[]
)
=>
void
}
Parameters
placeholder:
string
Returns
{
select
:
(
...
values
:
string
[]
)
=>
void
}
select
:
(
...
values
:
string
[]
)
=>
void
(
...
values
:
string
[]
)
:
void
Parameters
Rest
...
values:
string
[]
Returns
void
log
Messages
log
Messages
(
)
:
void
Returns
void
reply
reply
(
)
:
ReacordInstance
Returns
ReacordInstance
sample
Messages
sample
Messages
(
)
:
{
actionRows
:
(
Omit
<
MessageButtonOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageLinkOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageSelectOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
)
[]
[]
;
content
:
string
;
embeds
:
{
author
:
undefined
|
{ name: string; url?: string | undefined; icon_url?: string | undefined; }
;
color
:
undefined
|
number
;
description
:
undefined
|
string
;
fields
:
undefined
|
{ name: string; value: string; inline?: boolean | undefined; }
[]
;
footer
:
undefined
|
{ text: string; icon_url?: string | undefined; }
;
image
:
undefined
|
{ url: string; }
;
thumbnail
:
undefined
|
{ url: string; }
;
timestamp
:
undefined
|
string
;
title
:
undefined
|
string
;
url
:
undefined
|
string
;
video
:
undefined
|
{ url: string; }
}
[]
}
[]
Returns
{
actionRows
:
(
Omit
<
MessageButtonOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageLinkOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
|
Omit
<
MessageSelectOptions
,
"customId"
|
"onClick"
|
"onSelect"
|
"onSelectValue"
>
)
[]
[]
;
content
:
string
;
embeds
:
{
author
:
undefined
|
{ name: string; url?: string | undefined; icon_url?: string | undefined; }
;
color
:
undefined
|
number
;
description
:
undefined
|
string
;
fields
:
undefined
|
{ name: string; value: string; inline?: boolean | undefined; }
[]
;
footer
:
undefined
|
{ text: string; icon_url?: string | undefined; }
;
image
:
undefined
|
{ url: string; }
;
thumbnail
:
undefined
|
{ url: string; }
;
timestamp
:
undefined
|
string
;
title
:
undefined
|
string
;
url
:
undefined
|
string
;
video
:
undefined
|
{ url: string; }
}
[]
}
[]
send
send
(
)
:
ReacordInstance
Returns
ReacordInstance
Exports
Reacord
Tester
constructor
messages
assert
Messages
assert
Render
find
Button
By
Label
find
Select
By
Placeholder
log
Messages
reply
sample
Messages
send
Generated using
TypeDoc