@theophilusdev/conduit
Preparing search index...
MessageCreatePayload
Interface MessageCreatePayload
interface
MessageCreatePayload
{
attachments
:
MessageAttachment
[]
;
body
:
string
;
isGroup
:
boolean
;
mentions
:
Record
<
string
,
string
>
;
messageID
:
string
;
participantIDs
:
string
[]
;
senderID
:
string
;
threadID
:
string
;
timestamp
:
string
;
type
:
"message:create"
;
collect
(
options
?:
CollectorOptions
<
[
"message:respond"
]
>
,
)
:
ConduitMessageCollector
<
[
"message:respond"
]
>
;
collect
<
K
extends
readonly
(
keyof
ConduitEvents
)
[]
>
(
events
:
K
,
options
?:
CollectorOptions
<
K
>
,
)
:
ConduitMessageCollector
<
K
>
;
react
(
emoji
:
string
)
:
Promise
<
void
>
;
reply
(
body
:
ConduitSendableBody
)
:
Promise
<
SentMessage
>
;
send
(
body
:
ConduitSendableBody
)
:
Promise
<
SentMessage
>
;
shareContact
(
message
:
ConduitSendableBody
,
userID
:
string
,
)
:
Promise
<
SentMessage
>
;
waitResponse
(
options
?:
Omit
<
CollectorOptions
<
[
"message:respond"
]
>
,
"max"
>
,
)
:
Promise
<
MessageRespondPayload
>
;
waitResponse
<
K
extends
readonly
(
keyof
ConduitEvents
)
[]
>
(
events
:
K
,
options
?:
Omit
<
CollectorOptions
<
K
>
,
"max"
>
,
)
:
Promise
<
CollectorPayload
<
K
>
>
;
}
Hierarchy (
View Summary
)
EventPayload
<
"message:create"
>
Message
Replyable
MessageCreatePayload
Index
Properties
attachments
body
is
Group
mentions
message
ID
participant
I
Ds
sender
ID
thread
ID
timestamp
type
Methods
collect
react
reply
send
share
Contact
wait
Response
Properties
attachments
attachments
:
MessageAttachment
[]
body
body
:
string
is
Group
isGroup
:
boolean
mentions
mentions
:
Record
<
string
,
string
>
message
ID
messageID
:
string
participant
I
Ds
participantIDs
:
string
[]
sender
ID
senderID
:
string
thread
ID
threadID
:
string
timestamp
timestamp
:
string
type
type
:
"message:create"
Methods
collect
collect
(
options
?:
CollectorOptions
<
[
"message:respond"
]
>
,
)
:
ConduitMessageCollector
<
[
"message:respond"
]
>
Parameters
Optional
options
:
CollectorOptions
<
[
"message:respond"
]
>
Returns
ConduitMessageCollector
<
[
"message:respond"
]
>
collect
<
K
extends
readonly
(
keyof
ConduitEvents
)
[]
>
(
events
:
K
,
options
?:
CollectorOptions
<
K
>
,
)
:
ConduitMessageCollector
<
K
>
Type Parameters
K
extends
readonly
(
keyof
ConduitEvents
)
[]
Parameters
events
:
K
Optional
options
:
CollectorOptions
<
K
>
Returns
ConduitMessageCollector
<
K
>
react
react
(
emoji
:
string
)
:
Promise
<
void
>
Parameters
emoji
:
string
Returns
Promise
<
void
>
reply
reply
(
body
:
ConduitSendableBody
)
:
Promise
<
SentMessage
>
Parameters
body
:
ConduitSendableBody
Returns
Promise
<
SentMessage
>
send
send
(
body
:
ConduitSendableBody
)
:
Promise
<
SentMessage
>
Parameters
body
:
ConduitSendableBody
Returns
Promise
<
SentMessage
>
share
Contact
shareContact
(
message
:
ConduitSendableBody
,
userID
:
string
)
:
Promise
<
SentMessage
>
Parameters
message
:
ConduitSendableBody
userID
:
string
Returns
Promise
<
SentMessage
>
wait
Response
waitResponse
(
options
?:
Omit
<
CollectorOptions
<
[
"message:respond"
]
>
,
"max"
>
,
)
:
Promise
<
MessageRespondPayload
>
Parameters
Optional
options
:
Omit
<
CollectorOptions
<
[
"message:respond"
]
>
,
"max"
>
Returns
Promise
<
MessageRespondPayload
>
waitResponse
<
K
extends
readonly
(
keyof
ConduitEvents
)
[]
>
(
events
:
K
,
options
?:
Omit
<
CollectorOptions
<
K
>
,
"max"
>
,
)
:
Promise
<
CollectorPayload
<
K
>
>
Type Parameters
K
extends
readonly
(
keyof
ConduitEvents
)
[]
Parameters
events
:
K
Optional
options
:
Omit
<
CollectorOptions
<
K
>
,
"max"
>
Returns
Promise
<
CollectorPayload
<
K
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
attachments
body
is
Group
mentions
message
ID
participant
I
Ds
sender
ID
thread
ID
timestamp
type
Methods
collect
react
reply
send
share
Contact
wait
Response
@theophilusdev/conduit
Loading...