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

@@ -14,7 +14,6 @@ public class ExprsSvc : GrpcExprs.GrpcExprsBase, INService
_svc = svc;
}
[GrpcApiPerm(GuildPerm.Administrator)]
public override async Task<AddExprReply> AddExpr(AddExprRequest request, ServerCallContext context)
{
NadekoExpression expr;
@@ -45,7 +44,6 @@ public class ExprsSvc : GrpcExprs.GrpcExprsBase, INService
};
}
[GrpcApiPerm(GuildPerm.Administrator)]
public override async Task<GetExprsReply> GetExprs(GetExprsRequest request, ServerCallContext context)
{
var (exprs, totalCount) = await _svc.FindExpressionsAsync(request.GuildId, request.Query, request.Page);
@@ -66,7 +64,6 @@ public class ExprsSvc : GrpcExprs.GrpcExprsBase, INService
return reply;
}
[GrpcApiPerm(GuildPerm.Administrator)]
public override async Task<Empty> DeleteExpr(DeleteExprRequest request, ServerCallContext context)
{
await _svc.DeleteAsync(request.GuildId, new kwum(request.Id));