fix: biome lol

This commit is contained in:
MARCROCK22 2024-08-24 06:31:40 +00:00
parent 8c4a13264e
commit a98306fd72

View File

@ -241,7 +241,7 @@ export class Shard {
case GatewayOpcodes.InvalidSession: case GatewayOpcodes.InvalidSession:
if (packet.d) { if (packet.d) {
if (!this.resumable) { if (!this.resumable) {
return this.logger.fatal(`This is a completely unexpected error message.`); return this.logger.fatal('This is a completely unexpected error message.');
} }
await this.resume(); await this.resume();
} else { } else {
@ -301,7 +301,7 @@ export class Shard {
case GatewayCloseCodes.NotAuthenticated: case GatewayCloseCodes.NotAuthenticated:
case GatewayCloseCodes.AlreadyAuthenticated: case GatewayCloseCodes.AlreadyAuthenticated:
case GatewayCloseCodes.RateLimited: case GatewayCloseCodes.RateLimited:
this.logger.info(`Trying to reconnect`); this.logger.info('Trying to reconnect');
await this.reconnect(); await this.reconnect();
break; break;
@ -311,11 +311,11 @@ export class Shard {
case GatewayCloseCodes.InvalidIntents: case GatewayCloseCodes.InvalidIntents:
case GatewayCloseCodes.InvalidShard: case GatewayCloseCodes.InvalidShard:
case GatewayCloseCodes.ShardingRequired: case GatewayCloseCodes.ShardingRequired:
this.logger.fatal(`Cannot reconnect`); this.logger.fatal('Cannot reconnect');
break; break;
default: default:
this.logger.warn(`Unknown close code, trying to reconnect anyways`); this.logger.warn('Unknown close code, trying to reconnect anyways');
await this.reconnect(); await this.reconnect();
break; break;
} }