Files
discord.js/packages/ws/__tests__/gateway.mock.ts
Almeida 08a61ca8e3 refactor(WebSocketManager)!: remove deprecated rest option (#10998)
BREAKING CHANGE: The `rest` option in the `WebSocketManager` constructor has been removed. Pass a `fetchGatewayInformation` function instead.
2025-07-27 11:49:29 +01:00

13 lines
288 B
TypeScript

import type { RESTGetAPIGatewayBotResult } from 'discord-api-types/v10';
export const mockGatewayInformation: RESTGetAPIGatewayBotResult = {
shards: 1,
session_start_limit: {
max_concurrency: 3,
reset_after: 60,
remaining: 3,
total: 3,
},
url: 'wss://gateway.discord.gg',
};