Preparing search index...
The search index is not available
Oceanic
Oceanic
util/Collection
Collection
Class Collection<K, M, C, E>
Type Parameters
K
extends
string
|
number
M
extends
Record
<
string
,
any
>
C
extends
Base
E
extends
unknown
[]
=
[
]
Hierarchy
Collection
<
K
,
C
>
Collection
Index
Constructors
constructor
Methods
add
update
Constructors
constructor
new
Collection
<
K
,
M
,
C
,
E
>
(
baseObject
:
AnyClass
<
M
,
C
,
E
>
, client
:
Client
)
:
Collection
<
K
,
M
,
C
,
E
>
Type Parameters
K
extends
string
|
number
M
extends
Record
<
string
,
any
>
C
extends
Base
<
C
>
E
extends
unknown
[]
=
[
]
Parameters
baseObject:
AnyClass
<
M
,
C
,
E
>
client:
Client
Returns
Collection
<
K
,
M
,
C
,
E
>
Methods
add
add
<
T
>
(
value
:
T
)
:
T
Type Parameters
T
extends
Base
<
T
>
Parameters
value:
T
Returns
T
update
update
(
value
:
C
|
Partial
<
M
>
&
{
id
?:
K
}
,
...
extra
:
E
)
:
C
Parameters
value:
C
|
Partial
<
M
>
&
{
id
?:
K
}
Rest
...
extra:
E
Returns
C
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Modules
Oceanic
Client
Constants
gateway/
Gateway
Error
gateway/
Shard
gateway/
Shard
Manager
index
rest/
Bucket
rest/
DiscordHTTPError
rest/
DiscordRESTError
rest/RESTManager
rest/
Request
Handler
rest/
Sequential
Bucket
routes/
Application
Commands
routes/
Base
Route
routes/
Channels
routes/
Guilds
routes/
Interactions
routes/OAuth
routes/
Users
routes/
Webhooks
structures/
Announcement
Channel
structures/
Announcement
Thread
Channel
structures/
Application
structures/
Application
Command
structures/
Attachment
structures/
Auto
Moderation
Rule
structures/
Autocomplete
Interaction
structures/
Base
structures/
Category
Channel
structures/
Channel
structures/
Client
Application
structures/
Command
Interaction
structures/
Component
Interaction
structures/
Extended
User
structures/
Group
Channel
structures/
Guild
structures/
Guild
Channel
structures/
Guild
Preview
structures/
Guild
Template
structures/
Integration
structures/
Interaction
structures/
Invite
structures/
Member
structures/
Message
structures/
Modal
Submit
Interaction
structures/
Partial
Application
structures/
Permission
structures/
Permission
Overwrite
structures/
Ping
Interaction
structures/
Private
Channel
structures/
Private
Thread
Channel
structures/
Public
Thread
Channel
structures/
Role
structures/
Scheduled
Event
structures/
Stage
Channel
structures/
Stage
Instance
structures/
Team
structures/
Text
Channel
structures/
Textable
Channel
structures/
Thread
Channel
structures/
Unavailable
Guild
structures/
User
structures/
Voice
Channel
structures/
Voice
State
structures/
Webhook
types
types/application-
commands
types/audit-
log
types/auto-
moderation
types/channels
types/client
types/gateway
types/gateway-
raw
types/guild-
template
types/guilds
types/interactions
types/json
types/oauth
types/request-
handler
types/scheduled-
events
types/shared
types/stage-
instances
types/users
types/voice
types/webhooks
util/
Collection
util/
Debug
util/
Routes
util/
Typed
Emitter
voice/
Voice
Connection
voice/
Voice
Connection
Manager
Collection
constructor
add
update