1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
import { Events } from 'discord.js';
|
||||
import { createLogger } from '../core/logger.js';
|
||||
|
||||
const log = createLogger('discord');
|
||||
|
||||
// discord.js reconnects automatically with backoff; we only log the lifecycle (M2-T04 / M2-T08).
|
||||
export const name = Events.ShardDisconnect;
|
||||
|
||||
export async function execute(_client, closeEvent, shardId) {
|
||||
log.warn('Shard disconnected', { shardId, code: closeEvent?.code });
|
||||
}
|
||||
Reference in new issue
Block a user