Added Raid Reminders

This commit is contained in:
Sarah Faey 2022-11-17 21:42:09 +01:00
parent d0ff8251a2
commit 5a5c3df1a9
7 changed files with 232 additions and 12 deletions

View file

@ -272,13 +272,15 @@ namespace Lieb.Data
Message = message
};
apiReminder.UserIds = new List<ulong>();
HashSet<ulong> userIds = new HashSet<ulong>();
foreach(RaidSignUp signUp in raid.SignUps)
{
if(signUp.LiebUserId.HasValue)
{
apiReminder.UserIds.Add(signUp.LiebUserId.Value);
userIds.Add(signUp.LiebUserId.Value);
}
}
apiReminder.UserIds = userIds.ToList();
return apiReminder;
}