This commit is contained in:
Erik 2023-12-08 13:20:34 +02:00
parent e7a07c1326
commit a2d6510e0e

View File

@ -65,10 +65,7 @@ class StatsCommand extends SlashCommand
}; };
const shardResults = await shard.broadcastEval(evalFunc).catch((error) => this.client.logger.error(error)); const shardResults = await shard.broadcastEval(evalFunc).catch((error) => this.client.logger.error(error));
// const shardResults: null | [] = null;
console.log('shart results');
const managerResult = await this.client.managerEval(mEvalFunc).catch((error) => this.client.logger.error(error)); const managerResult = await this.client.managerEval(mEvalFunc).catch((error) => this.client.logger.error(error));
console.log('manager result');
if (!shardResults || !managerResult) if (!shardResults || !managerResult)
throw new Error('Missing results for either shard or manager'); throw new Error('Missing results for either shard or manager');