reworked sign up workflow

This commit is contained in:
Sarah Faey 2022-12-03 12:27:51 +01:00
parent 2a9cd89783
commit 19595e52bf
4 changed files with 51 additions and 20 deletions

View file

@ -37,7 +37,11 @@ namespace DiscordBot.CommandHandlers
AccountSelectionMessage.Parameters accountParameters = AccountSelectionMessage.ParseId(component.Data.CustomId);
int accountId = int.Parse(component.Data.Values.First());
await _handlerFunctions.SignUp(accountParameters.ButtonType, accountParameters.RaidId, accountParameters.RoleId, accountParameters.UserIdToSignUp, accountId, accountParameters.SignedUpByUserId);
await component.RespondAsync("successfully signed up", ephemeral: true);
await component.UpdateAsync(x =>
{
x.Content = "successfully signed up";
x.Components = null;
});
break;
}
}