change: Changed how leaving unkept servers work. It only works per-shard now

This commit is contained in:
Kwoth
2024-08-27 01:38:36 +00:00
parent 8b2ed0dbdc
commit 52b87c7776
3 changed files with 11 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ public partial class Administration
[Cmd]
[OwnerOnly]
public async Task LeaveUnkeptServers()
public async Task LeaveUnkeptServers(int shardId = 0)
{
var keptGuildCount = await _svc.GetKeptGuildCount();
@@ -58,7 +58,7 @@ public partial class Administration
if (!response)
return;
await _svc.LeaveUnkeptServers();
await _svc.LeaveUnkeptServers(shardId);
await ctx.OkAsync();
}
}