Search
Preparing search index...
The search index is not available
不和 (Fuwa)
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
不和 (Fuwa)
ChannelMessageManager
Class ChannelMessageManager
Hierarchy
BaseManager
<
Message
<
TextChannel
>
>
ChannelMessageManager
Index
Constructors
constructor
Properties
__class
cache
channel
client
Accessors
size
Methods
add
add
Many
create
delete
fetch
get
map
remove
remove
Many
resolve
update
Constructors
constructor
new
Channel
Message
Manager
(
channel
:
TextChannel
)
:
ChannelMessageManager
Parameters
channel:
TextChannel
Returns
ChannelMessageManager
Properties
__class
__class
:
any
cache
cache
:
Map
<
string
,
Message
<
TextChannel
>
>
= ...
channel
channel
:
TextChannel
client
client
:
Client
Accessors
size
get
size
(
)
:
number
Returns
number
Methods
add
add
(
data
:
Message
<
TextChannel
>
)
:
Message
<
TextChannel
>
Parameters
data:
Message
<
TextChannel
>
Returns
Message
<
TextChannel
>
add
Many
add
Many
(
data
:
Message
<
TextChannel
>
[]
)
:
Message
<
TextChannel
>
[]
Parameters
data:
Message
<
TextChannel
>
[]
Returns
Message
<
TextChannel
>
[]
create
create
(
data
:
string
|
MessagePayload
|
MessagePayloadData
, cache
?:
boolean
)
:
Promise
<
Message
<
TextChannel
>
>
Parameters
data:
string
|
MessagePayload
|
MessagePayloadData
cache:
boolean
= false
Returns
Promise
<
Message
<
TextChannel
>
>
delete
delete
(
id
:
string
, reason
?:
string
)
:
Promise
<
boolean
>
Parameters
id:
string
Optional
reason:
string
Returns
Promise
<
boolean
>
fetch
fetch
(
id
:
string
, cache
?:
boolean
)
:
Promise
<
Message
<
TextChannel
>
>
Parameters
id:
string
cache:
boolean
= false
Returns
Promise
<
Message
<
TextChannel
>
>
get
get
(
id
:
string
)
:
undefined
|
Message
<
TextChannel
>
Parameters
id:
string
Returns
undefined
|
Message
<
TextChannel
>
map
map
(
fn
:
(
data
:
Message
<
TextChannel
>
, key
:
string
, cache
:
Map
<
string
,
Message
<
TextChannel
>
>
)
=>
any
)
:
any
[]
Parameters
fn:
(
data
:
Message
<
TextChannel
>
, key
:
string
, cache
:
Map
<
string
,
Message
<
TextChannel
>
>
)
=>
any
(
data
:
Message
<
TextChannel
>
, key
:
string
, cache
:
Map
<
string
,
Message
<
TextChannel
>
>
)
:
any
Parameters
data:
Message
<
TextChannel
>
key:
string
cache:
Map
<
string
,
Message
<
TextChannel
>
>
Returns
any
Returns
any
[]
remove
remove
(
id
:
string
)
:
void
Parameters
id:
string
Returns
void
remove
Many
remove
Many
(
ids
:
string
[]
)
:
void
Parameters
ids:
string
[]
Returns
void
resolve
resolve
(
data
:
any
)
:
undefined
|
Message
<
TextChannel
>
Parameters
data:
any
Returns
undefined
|
Message
<
TextChannel
>
update
update
(
data
:
Message
<
TextChannel
>
)
:
Message
<
TextChannel
>
Parameters
data:
Message
<
TextChannel
>
Returns
Message
<
TextChannel
>
Exports
Internals
Tokens
Externals
Types
Channel
Message
Manager
constructor
__class
cache
channel
client
size
add
add
Many
create
delete
fetch
get
map
remove
remove
Many
resolve
update
Generated using
TypeDoc