ServerManagers/src/ServerManager.Discord/Services/ShutdownService.cs
2021-12-04 11:39:01 +10:00

21 lines
462 B
C#

using Discord.WebSocket;
using System.Threading.Tasks;
namespace ServerManagerTool.Discord.Services
{
public class ShutdownService
{
private readonly DiscordSocketClient _discord;
public ShutdownService(DiscordSocketClient discord)
{
_discord = discord;
}
public async Task StopAsync()
{
await _discord.StopAsync();
await _discord.LogoutAsync();
}
}
}