Search
Preparing search index...
The search index is not available
node-groupme
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
MessageManager
Exports
Class MessageManager<T, U, UCtor>
Type parameters
T
:
Channel
U
:
Message
<
T
>
UCtor
:
function
Hierarchy
BaseManager
<
U
,
UCtor
>
MessageManager
ChatMessageManager
GroupMessageManager
Implements
MessageManagerInterface
<
T
,
U
>
Constructors
constructor
Properties
cache
channel
client
holds
Methods
_remove
_upsert
fetch
resolve
resolve
Id
Constructors
constructor
new
Message
Manager<T, U, UCtor>
(
client
:
Client
, channel
:
T
, holds
:
UCtor
)
:
MessageManager
<
T
,
U
,
UCtor
>
Type parameters
T
:
Channel
<
T
>
U
:
Message
<
T
,
U
>
UCtor
:
function
Parameters
client:
Client
channel:
T
holds:
UCtor
Returns
MessageManager
<
T
,
U
,
UCtor
>
Properties
Readonly
cache
cache
:
Collection
<
string
,
U
>
Readonly
channel
channel
:
T
Readonly
client
client
:
Client
Readonly
holds
holds
:
UCtor
Methods
_remove
_remove
(
data
:
U
)
:
boolean
Parameters
data:
U
Returns
boolean
_upsert
_upsert
(
data
:
U
)
:
U
Parameters
data:
U
Returns
U
Abstract
fetch
fetch
(
)
:
Promise
<
Collection
<
string
,
U
>
>
fetch
(
id
:
string
)
:
Promise
<
U
>
fetch
(
ids
:
string
[]
)
:
Promise
<
Collection
<
string
,
U
>
>
fetch
(
options
:
MessageRequestParams
)
:
Promise
<
Collection
<
string
,
U
>
>
Returns
Promise
<
Collection
<
string
,
U
>
>
Parameters
id:
string
Returns
Promise
<
U
>
Parameters
ids:
string
[]
Returns
Promise
<
Collection
<
string
,
U
>
>
Parameters
options:
MessageRequestParams
Returns
Promise
<
Collection
<
string
,
U
>
>
resolve
resolve
(
data
:
unknown
)
:
null
|
U
Parameters
data:
unknown
Returns
null
|
U
resolve
Id
resolve
Id
(
data
:
unknown
)
:
null
|
string
Parameters
data:
unknown
Returns
null
|
string
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
Message
Like
Manager
Message
Manager
constructor
cache
channel
client
holds
_remove
_upsert
fetch
resolve
resolve
Id
Poll
Poll
Manager
Poll
Option
Relationship
Relationship
Manager
User
User
Manager
Sendable
Channel
Interface
Generated using
TypeDoc