dev: split warn punishments into a separate table

api: Added warn endpoints
fix: Reminders should now be able to ping everyone if the user who created the reminder has that permission
This commit is contained in:
Kwoth
2024-10-21 03:14:46 +00:00
parent b136e7ff0e
commit c835514c7b
27 changed files with 7430 additions and 211 deletions

View File

@@ -6,7 +6,7 @@ using NadekoBot.Modules.Utility;
namespace NadekoBot.GrpcApi;
public class ExprsSvc : GrpcExprs.GrpcExprsBase, INService
public class ExprsSvc : GrpcExprs.GrpcExprsBase, IGrpcSvc, INService
{
private readonly NadekoExpressionsService _svc;
private readonly IQuoteService _qs;
@@ -18,6 +18,9 @@ public class ExprsSvc : GrpcExprs.GrpcExprsBase, INService
_qs = qs;
_client = client;
}
public ServerServiceDefinition Bind()
=> GrpcExprs.BindService(this);
private ulong GetUserId(Metadata meta)
=> ulong.Parse(meta.FirstOrDefault(x => x.Key == "userid")!.Value);