Do not emit shutdown event when changing the config

This commit is contained in:
JustArchi
2022-06-15 18:44:07 +02:00
parent 7c1c0d61b4
commit 164d9330f0

View File

@@ -1406,7 +1406,9 @@ public sealed class Bot : IAsyncDisposable {
return;
}
Stop(botConfig.Enabled);
// Skip shutdown event as we're actually reinitializing the bot, not fully stopping it
Stop(true);
BotConfig = botConfig;
await InitModules().ConfigureAwait(false);