Correct way to handle post match flow? #157
-
Hey! I figure I would stop creating issues and actually post here, since these are questions and not bugs... I'm trying to automate the progression of the tournament and was wondering if I could get some pointers. I'm starting with a simple 'single_elimination' bracket with no consolation final. Whenever a match is finished, and assuming they won, I want to let the user know if they either have to go to the next match, or if they won the tournament Would it be enough to just call Otherwise, send them to the matchID of the first result in the nextMatches array?? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey! For this matter, both issues and discussions are OK 😉 And no, But I'm working on an update now, and I think I'll add an optional Would it work for you? |
Beta Was this translation helpful? Give feedback.
Hey! For this matter, both issues and discussions are OK 😉
And no,
manager.find.nextMatches()
doesn't take the result of the match into account. It only gives you, based on the structure of the tournament, what is the next match to be played.But I'm working on an update now, and I think I'll add an optional
participantId?: number
parameter tomanager.find.nextMatches()
. If aparticipantId
is given, it will give you the next matches from the point of view of the given participant.Would it work for you?