Search
Preparing search index...
The search index is not available
不和 (Fuwa)
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
不和 (Fuwa)
BaseManager
Class BaseManager<T>
Abstract
Type parameters
T
:
{
id
:
Snowflake
;
_deserialise
:
any
}
Hierarchy
BaseManager
GuildManager
UserManager
ChannelManager
ChannelMessageManager
GuildMemberManager
Index
Constructors
constructor
Properties
__class
cache
client
Accessors
size
Methods
add
add
Many
fetch
get
map
remove
remove
Many
resolve
update
Constructors
constructor
new
Base
Manager
<
T
>
(
client
:
Client
, __class
:
any
)
:
BaseManager
<
T
>
Type parameters
T
:
{
id
:
string
;
_deserialise
:
any
}
Parameters
client:
Client
__class:
any
Returns
BaseManager
<
T
>
Properties
__class
__class
:
any
cache
cache
:
Map
<
string
,
T
>
= ...
client
client
:
Client
Accessors
size
get
size
(
)
:
number
Returns
number
Methods
add
add
(
data
:
T
)
:
T
Parameters
data:
T
Returns
T
add
Many
add
Many
(
data
:
T
[]
)
:
T
[]
Parameters
data:
T
[]
Returns
T
[]
Abstract
fetch
fetch
(
id
:
string
, cache
?:
boolean
)
:
Promise
<
T
>
Parameters
id:
string
Optional
cache:
boolean
Returns
Promise
<
T
>
get
get
(
id
:
T
[
"id"
]
)
:
undefined
|
T
Parameters
id:
T
[
"id"
]
Returns
undefined
|
T
map
map
(
fn
:
(
data
:
T
, key
:
string
, cache
:
Map
<
string
,
T
>
)
=>
any
)
:
any
[]
Parameters
fn:
(
data
:
T
, key
:
string
, cache
:
Map
<
string
,
T
>
)
=>
any
(
data
:
T
, key
:
string
, cache
:
Map
<
string
,
T
>
)
:
any
Parameters
data:
T
key:
string
cache:
Map
<
string
,
T
>
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
|
T
Parameters
data:
any
Returns
undefined
|
T
update
update
(
data
:
T
)
:
T
Parameters
data:
T
Returns
T
Exports
Internals
Tokens
Externals
Types
Base
Manager
constructor
__class
cache
client
size
add
add
Many
fetch
get
map
remove
remove
Many
resolve
update
Generated using
TypeDoc