change: cleanup command will now also clear greetsettings and autpublish channels

dev: Cleaned up some comments, changed grpc api
This commit is contained in:
Kwoth
2024-10-10 16:01:49 +00:00
parent 6cc5a160a2
commit 74b4c4b64d
13 changed files with 218 additions and 128 deletions

View File

@@ -206,6 +206,18 @@ public sealed class CleanupService : ICleanupService, IReadyExecutor, INService
.Where(x => !tempTable.Select(x => x.GuildId)
.Contains(x.GuildId))
.DeleteAsync();
// delete autopublish channels
await ctx.GetTable<AutoPublishChannel>()
.Where(x => !tempTable.Select(x => x.GuildId)
.Contains(x.GuildId))
.DeleteAsync();
// delete greet settings
await ctx.GetTable<GreetSettings>()
.Where(x => !tempTable.Select(x => x.GuildId)
.Contains(x.GuildId))
.DeleteAsync();
return new()
{