This commit is contained in:
2022-06-05 18:25:30 +03:00
parent 4fbea983da
commit fd28a166f7
6 changed files with 15 additions and 20 deletions

View File

@@ -5,7 +5,6 @@ using System;
using System.Threading;
using System.Threading.Tasks;
using PluginManager;
using PluginManager.Others;
using static PluginManager.Others.Functions;
namespace DiscordBot.Discord.Core
@@ -77,17 +76,6 @@ namespace DiscordBot.Discord.Core
}
/// <summary>
/// The method that stops the bot from running
/// </summary>
/// <returns></returns>
public async Task ShutDown()
{
if (client == null) return;
await client.LogoutAsync();
await client.StopAsync();
}
private void CommonTasks()
{
if (client == null) return;