Preparing search index...
The search index is not available
Oceanic
Oceanic
SequentialBucket
SequentialBucket
Class SequentialBucket
A ratelimit bucket.
Hierarchy
SequentialBucket
Index
Constructors
constructor
Properties
last
latency
Ref
limit
processing
remaining
reset
Methods
queue
Constructors
constructor
new
Sequential
Bucket
(
limit
:
number
, latencyRef
:
LatencyRef
)
:
SequentialBucket
Parameters
limit:
number
latencyRef:
LatencyRef
Returns
SequentialBucket
Properties
last
last
:
number
latency
Ref
latency
Ref
:
LatencyRef
limit
limit
:
number
processing
processing
:
boolean
|
Timeout
= false
remaining
remaining
:
number
reset
reset
:
number
Methods
queue
queue
(
func
:
(
(
cb
:
(
(
)
=>
void
)
)
=>
void
)
, priority
?:
boolean
)
:
void
Add an item to the queue.
Parameters
func:
(
(
cb
:
(
(
)
=>
void
)
)
=>
void
)
The function to queue.
(
cb
:
(
(
)
=>
void
)
)
:
void
Parameters
cb:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
priority:
boolean
= false
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Modules
Oceanic
Announcement
Channel
Announcement
Thread
Channel
Application
Application
Command
Attachment
Audit
Log
Entry
Auto
Moderation
Rule
Autocomplete
Interaction
Base
Bucket
Category
Channel
Channel
Client
Client
Application
Collection
Command
Interaction
Component
Interaction
Constants
DiscordHTTPError
DiscordRESTError
Events
Extended
User
Forum
Channel
Gateway
Error
Group
Channel
Guild
Guild
Channel
Guild
Preview
Guild
Scheduled
Event
Guild
Template
Integration
Interaction
Interaction
Options
Wrapper
Interaction
Resolved
Channel
Invite
Invite
Guild
Member
Message
Modal
Submit
Interaction
OAuth
Guild
OAuth
Helper
Partial
Application
Permission
Permission
Overwrite
Ping
Interaction
Private
Channel
Private
Thread
Channel
Public
Thread
Channel
RESTManager
Raw
Container
Request
Handler
Role
Routes
Routes/
Application
Commands
Routes/
Channels
Routes/
Guilds
Routes/
Interactions
Routes/
Miscellaneous
Routes/OAuth
Routes/
Users
Routes/
Webhooks
Select
Menu
Values
Wrapper
Sequential
Bucket
Shard
Shard
Manager
Stage
Channel
Stage
Instance
Team
Text
Channel
Textable
Channel
Thread
Channel
Typed
Collection
Typed
Emitter
Types/
Application
Commands
Types/
Audit
Log
Types/
Auto
Moderation
Types/
Channels
Types/
Client
Types/
Gateway
Types/
Gateway/
Raw
Types/
Guild
Template
Types/
Guilds
Types/
Index
Types/
Interactions
Types/JSON
Types/OAuth
Types/
Request
Handler
Types/
Scheduled
Events
Types/
Shared
Types/
Users
Types/
Voice
Types/
Webhooks
Unavailable
Guild
Uncaught
Error
User
Util
Voice
Channel
Voice
State
Webhook
index
Sequential
Bucket
constructor
last
latency
Ref
limit
processing
remaining
reset
queue
A ratelimit bucket.