#Race Condition

2 messages · Page 1 of 1 (latest)

torpid sparrow

I have a quick question, how can I intercept race conditions in a slashcommand. My bot allows to reserve something. If now 2 people execute the command at the same time I have 2 times the same reservation in my database. Anyone have a tip how I can solve the problem?

elder timberBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!