/
docs
/
packages
/
ws
/
0.2.0
/
range%3AFunction
Search...
K
ws
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
0.2.0
main
2.0.1
2.0.0
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.6.0
0.5.0
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
Classes
IdentifyThrottler
SimpleContextFetchingStrategy
SimpleShardingStrategy
WebSocketManager
WebSocketShard
WorkerContextFetchingStrategy
WorkerShardingStrategy
Functions
lazy
managerToFetchingStrategyOptions
range
Enums
CloseCodes
CompressionMethod
Encoding
WebSocketShardDestroyRecovery
WebSocketShardEvents
WebSocketShardStatus
WorkerRecievePayloadOp
WorkerSendPayloadOp
Interfaces
FetchingStrategyOptions
IContextFetchingStrategy
IShardingStrategy
OptionalWebSocketManagerOptions
RequiredWebSocketManagerOptions
SessionInfo
ShardRange
WebSocketShardDestroyOptions
WorkerData
WorkerShardingStrategyOptions
Types
Awaitable
ManagerShardEventsMap
WebSocketManagerOptions
WebSocketShardEventsMap
WorkerRecievePayload
WorkerSendPayload
Variables
DefaultDeviceProperty
DefaultWebSocketManagerOptions
ImportantGatewayOpcodes
range
export declare function
range
({
start
,
end
}
:
ShardRange
)
:
number
[];
export declare function
range
({ start
,
end }
:
ShardRange
)
:
number
[];
Summary
Yields the numbers in the given range as an array
Example
range(
start: 3, end: 5
); // [3, 4, 5]
Parameters
Name
Type
Optional
Description
{ start, end }
ShardRange
No
None