change: unkept leave now has a configurable delay

This commit is contained in:
Kwoth
2024-08-28 02:22:58 +00:00
parent 52b87c7776
commit c9ed2cf4b5
4 changed files with 15 additions and 15 deletions

View File

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