Search
Preparing search index...
The search index is not available
node-groupme
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Message
Exports
Class Message<T>
Type parameters
T
:
Channel
Hierarchy
Base
Message
GroupMessage
ChatMessage
Implements
MessageInterface
<
T
>
Constructors
constructor
Properties
attachments
channel
client
created
At
id
likes
source
Guid
system
text
user
Accessors
can
Delete
Methods
_clone
_patch
delete
fetch
like
reply
unlike
Constructors
constructor
new
Message<T>
(
client
:
Client
, channel
:
T
, data
:
APIGroupMessage
|
APIChatMessage
)
:
Message
<
T
>
Type parameters
T
:
Channel
<
T
>
Parameters
client:
Client
channel:
T
data:
APIGroupMessage
|
APIChatMessage
Returns
Message
<
T
>
Properties
attachments
attachments
:
Attachment
[]
channel
channel
:
T
Readonly
client
client
:
Client
created
At
created
At
:
number
Readonly
id
id
:
string
likes
likes
:
(
string
|
User
)
[]
source
Guid
source
Guid
:
string
system
system
:
boolean
text
text
:
null
|
string
user
user
:
User
Accessors
can
Delete
get
canDelete
(
)
:
boolean
Returns
boolean
Methods
_clone
_clone
(
)
:
any
Returns
any
_patch
_patch
(
data
:
Partial
<
APIGroupMessage
|
APIChatMessage
>
)
:
Message
<
T
>
Parameters
data:
Partial
<
APIGroupMessage
|
APIChatMessage
>
Returns
Message
<
T
>
delete
delete
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
fetch
fetch
(
)
:
Promise
<
Message
<
T
>
>
Returns
Promise
<
Message
<
T
>
>
like
like
(
)
:
Promise
<
Message
<
T
>
>
Returns
Promise
<
Message
<
T
>
>
reply
reply
(
message
:
string
)
:
Promise
<
Message
<
T
>
>
Parameters
message:
string
Returns
Promise
<
Message
<
T
>
>
unlike
unlike
(
)
:
Promise
<
Message
<
T
>
>
Returns
Promise
<
Message
<
T
>
>
Channel
Type
Former
Member
State
Attachment
Base
Base
Group
Base
Manager
Channel
Chat
Chat
Manager
Chat
Message
Chat
Message
Manager
Client
Collection
Former
Group
Former
Group
Manager
Former
Member
Former
Member
Manager
Group
Group
Manager
Group
Message
Group
Message
Manager
Member
Member
Manager
Message
constructor
attachments
channel
client
created
At
id
likes
source
Guid
system
text
user
can
Delete
_clone
_patch
delete
fetch
like
reply
unlike
Message
Like
Manager
Message
Manager
Poll
Poll
Manager
Poll
Option
Relationship
Relationship
Manager
User
User
Manager
Sendable
Channel
Interface
Generated using
TypeDoc