Random Messages don't show empty roles
No Flex Button in random raids Reworked random sign up to keep roles after signing off
This commit is contained in:
parent
0c319a0a8a
commit
2288e48308
7 changed files with 161 additions and 70 deletions
|
@ -314,7 +314,8 @@ namespace Lieb.Data
|
|||
VoiceChat = raid.VoiceChat,
|
||||
StartTimeUTC = raid.StartTimeUTC,
|
||||
EndTimeUTC = raid.EndTimeUTC,
|
||||
RaidId = raid.RaidId
|
||||
RaidId = raid.RaidId,
|
||||
AllowFlexRole = raid.RaidType == RaidType.Planned
|
||||
};
|
||||
apiRaid.DisocrdMessages = ConvertMessages(raid.DiscordRaidMessages);
|
||||
apiRaid.Roles = new List<ApiRaid.Role>();
|
||||
|
@ -353,7 +354,10 @@ namespace Lieb.Data
|
|||
}
|
||||
}
|
||||
}
|
||||
apiRaid.Roles.Add(apiRole);
|
||||
if(raid.RaidType == RaidType.Planned || role.IsRandomSignUpRole || apiRole.Users.Count > 0)
|
||||
{
|
||||
apiRaid.Roles.Add(apiRole);
|
||||
}
|
||||
}
|
||||
return apiRaid;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue