add: Added .keep command which will add the current guild to the list of keptguilds. This is needed for the future database purge.

This commit is contained in:
Kwoth
2024-07-28 00:33:31 +00:00
parent 80a7678a82
commit ee9d8a51bf
5 changed files with 67 additions and 19 deletions

View File

@@ -27,5 +27,15 @@ public partial class Administration
.Confirm($"{result.GuildCount} guilds' data remain in the database.")
.SendAsync();
}
[Cmd]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.Administrator)]
public async Task Keep()
{
var result = await _svc.KeepGuild(Context.Guild.Id);
await Response().Text("This guild's bot data will be saved.").SendAsync();
}
}
}