mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user