added account creation to the Discord bot
This commit is contained in:
parent
69337e69ae
commit
56cb43a479
18 changed files with 198 additions and 152 deletions
|
@ -204,11 +204,15 @@ namespace Lieb.Data
|
|||
|
||||
foreach(RaidSignUp signUp in raid.SignUps.Where(x => x.RaidRoleId == role.RaidRoleId))
|
||||
{
|
||||
apiRole.Users.Add(new ApiRaid.Role.User(){
|
||||
AccountName = signUp.GuildWars2Account.AccountName,
|
||||
Status = signUp.SignUpType.ToString(),
|
||||
UserName = signUp.LiebUser.Name
|
||||
});
|
||||
if(signUp.SignUpType != SignUpType.SignedOff)
|
||||
{
|
||||
string status = signUp.SignUpType != SignUpType.SignedUp ? signUp.SignUpType.ToString() : string.Empty;
|
||||
apiRole.Users.Add(new ApiRaid.Role.User(){
|
||||
AccountName = signUp.GuildWars2Account.AccountName,
|
||||
Status = status,
|
||||
UserName = signUp.LiebUser.Name
|
||||
});
|
||||
}
|
||||
}
|
||||
apiRaid.Roles.Add(apiRole);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue