mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
change: unkept leave now has a configurable delay
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user