everyone who is allowed do use slash commands can now sign up users ignoring the raid requirements

This commit is contained in:
Sarah Faey 2022-12-04 11:40:32 +01:00
parent 9c6386e137
commit de351e167c
2 changed files with 8 additions and 11 deletions

View file

@ -76,7 +76,7 @@ namespace DiscordBot.CommandHandlers
public async Task SelectRole(SocketInteraction component, int raidId, string buttonType, bool allRoles, ulong userIdToSignUp, ulong signedUpByUserId)
{
if(await IsRaidSignUpAllowed(component, raidId, buttonType))
if(signedUpByUserId != 0 || await IsRaidSignUpAllowed(component, raidId, buttonType))
{
List<ApiRole> roles = new List<ApiRole>();
roles = await _httpService.GetRoles(raidId, userIdToSignUp);