forked from EllieBotDevs/elliebot
fixed expire settings not returned on api
This commit is contained in:
parent
1038576ff4
commit
746ffda946
3 changed files with 5 additions and 3 deletions
src/EllieBot/Services/GrpcApi
|
@ -27,6 +27,8 @@ public sealed class WarnSvc : GrpcWarn.GrpcWarnBase, IGrpcSvc, IEService
|
|||
|
||||
var wsr = new WarnSettingsReply();
|
||||
|
||||
(wsr.ExpiryDays, wsr.DeleteOnExpire) = await _ups.GetWarnExpire(request.GuildId);
|
||||
|
||||
wsr.Punishments.AddRange(list.Select(x => new WarnPunishment()
|
||||
{
|
||||
Action = x.Punishment.ToString(),
|
||||
|
|
Reference in a new issue