Preparing search index...
The search index is not available
TouchGuild
TouchGuild
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
Touch
Guild
Banned
Member
Base
Bucket
Calendar
Event
Calendar
Handler
CalendarRSVP
Channel
Channel
Handler
Client
Collection
Constants
Doc
Doc
Handler
Forum
Thread
Forum
Thread
Comment
Forum
Thread
Handler
Forum
Thread
Reaction
Info
Gateway
Error
Gateway
Event
Handler
Gateway
Handler
Guild
Guild
Handler
GuildedHTTPError
GuildedRESTError
List
Item
List
Item
Handler
Member
Member
Info
Member
Remove
Info
Member
Update
Info
Message
Message
Handler
Message
Reaction
Info
RESTManager
Reaction
Info
Request
Handler
Routes/
Channels
Routes/
Guilds
Routes/
Guilds
Sequential
Bucket
Typed
Collection
Typed
Emitter
Types
Types/
Request
Handler
User
User
Client
WSManager
Webhook
Webhook
Handler
index
APITypes
rest/endpoints
types/calendar
Event
types/channel
types/client
types/doc
types/events
types/forum
Thread
types/forum
Thread
Comment
types/list
Item
types/webhook
types/webhooks
types/wsevents
Sequential
Bucket
constructor
last
latency
Ref
limit
processing
remaining
reset
queue
A ratelimit bucket.