added automatic deletion of polls

This commit is contained in:
Sarah Faey 2023-02-13 23:12:05 +01:00
parent b6dd3ff9c4
commit ac3cc69b68
7 changed files with 846 additions and 7 deletions

View file

@ -704,7 +704,7 @@ namespace Lieb.Data
{
raid.MinUserPollId = await _pollService.CreatePoll(
"The raid has not the required users, do you want to raid anyway?",
new List<string>() {Constants.Polls.YES, Constants.Polls.NO }, raid.RaidId);
new List<string>() {Constants.Polls.YES, Constants.Polls.NO }, raid.RaidId, true);
await context.SaveChangesAsync();
await _discordService.PostRaidMessage(raid.RaidId);
}