Yuzu b15666f20e
chore: use single quotes (#68)
* chore: single quote
2022-07-18 18:25:23 +00:00

9 lines
284 B
TypeScript

import { delay } from '../../util/delay.ts';
import { GatewayManager } from './gatewayManager.ts';
export async function stop(gateway: GatewayManager, code: number, reason: string) {
gateway.manager.shards.forEach((shard) => shard.close(code, reason));
await delay(5000);
}