Preparing search index...
The search index is not available
cardstack
cardstack
@cardstack/discord-bot
MockChannel
Class MockChannel
Hierarchy
MockChannel
Index
Constructors
constructor
Properties
responses
id
type
on
Send
Methods
send
Accessors
last
Response
Constructors
constructor
new
Mock
Channel
(
__namedParameters
:
{
id
?:
string
;
type
?:
string
;
onSend
?:
(
(
msg
:
any
)
=>
Promise
<
unknown
>
)
;
}
)
:
MockChannel
Parameters
__namedParameters:
{
id
?:
string
;
type
?:
string
;
onSend
?:
(
(
msg
:
any
)
=>
Promise
<
unknown
>
)
;
}
Optional
id
?:
string
Optional
type
?:
string
Optional
on
Send
?:
(
(
msg
:
any
)
=>
Promise
<
unknown
>
)
(
msg
:
any
)
:
Promise
<
unknown
>
Parameters
msg:
any
Returns
Promise
<
unknown
>
Returns
MockChannel
Properties
Readonly
responses
responses
:
any
[]
= []
Readonly
id
id
:
string
= '1'
Readonly
type
type
:
string
= 'text'
Readonly
on
Send
on
Send
:
undefined
|
(
(
msg
:
any
)
=>
Promise
<
unknown
>
)
Methods
send
send
(
msg
:
any
)
:
Promise
<
unknown
>
Parameters
msg:
any
Returns
Promise
<
unknown
>
Accessors
last
Response
get
lastResponse
(
)
:
any
Returns
any
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
cardstack
@cardstack/cardpay-
sdk -
v1.0.53
@cardstack/db -
v1.0.53
@cardstack/di -
v1.0.53
@cardstack/did-
resolver -
v1.0.53
@cardstack/discord-
bot -
v1.0.53
@cardstack/wc-
provider -
v1.0.53
Mock
Channel
constructor
responses
id
type
on
Send
send
last
Response
Generated using
TypeDoc