diff --git a/src/middleware/BaseClient.js b/src/middleware/BaseClient.js index 5fa8c6c..b5b3156 100644 --- a/src/middleware/BaseClient.js +++ b/src/middleware/BaseClient.js @@ -12,7 +12,8 @@ class BaseClient extends EventEmitter { super(); - this.shardingManager = new ShardingManager('src/structure/DiscordClient.js', options.discord.shardOptions); + const respawn = process.env.NODE_ENV !== 'development'; + this.shardingManager = new ShardingManager('src/structure/DiscordClient.js', { ...options.discord.shardOptions, respawn }); this.slashCommandManager = new SlashCommandManager(this); this.logger = new Logger(this, options.logger);