mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor(website): adjust typography (#8503)
This commit is contained in:
@@ -6,7 +6,7 @@ export type Awaitable<T> = T | Promise<T>;
|
||||
* Yields the numbers in the given range as an array
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* ```ts
|
||||
* range({ start: 3, end: 5 }); // [3, 4, 5]
|
||||
* ```
|
||||
*/
|
||||
|
||||
@@ -81,14 +81,14 @@ export interface OptionalWebSocketManagerOptions {
|
||||
* Use `null` to simply spawn 0 through `shardCount - 1`
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* ```ts
|
||||
* const manager = new WebSocketManager({
|
||||
* shardIds: [1, 3, 7], // spawns shard 1, 3, and 7, nothing else
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* ```ts
|
||||
* const manager = new WebSocketManager({
|
||||
* shardIds: {
|
||||
* start: 3,
|
||||
@@ -127,8 +127,9 @@ export interface OptionalWebSocketManagerOptions {
|
||||
compression: CompressionMethod | null;
|
||||
/**
|
||||
* Function used to retrieve session information (and attempt to resume) for a given shard
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* ```ts
|
||||
* const manager = new WebSocketManager({
|
||||
* async retrieveSessionInfo(shardId): Awaitable<SessionInfo | null> {
|
||||
* // Fetch this info from redis or similar
|
||||
|
||||
Reference in New Issue
Block a user