Skip to content

Conversation

Zabuzard
Copy link
Member

Overview

Fixes and closes #723.

This is about a bug happening when our "on-help-thread-created"-actions are executed too fast, after Discord created the thread, but before it send OPs first message. It seems that the whole process does not happen atomic on Discords side, so our actions can slip in-between.

When that happens, we get an exception, cause the first message has to be from OP.

This fixes the issue by delaying sending the messages by 5 seconds, easy.

@Zabuzard Zabuzard added bug Something isn't working priority: major labels Dec 13, 2022
@Zabuzard Zabuzard self-assigned this Dec 13, 2022
@Zabuzard Zabuzard requested review from a team as code owners December 13, 2022 08:51
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Zabuzard
Copy link
Member Author

sorta urgent, since it happens multiple times a day right now

@Zabuzard Zabuzard merged commit e5460a1 into develop Dec 15, 2022
@Zabuzard Zabuzard deleted the bugfix/help_thread_created_too_fast branch December 15, 2022 09:00
@Zabuzard Zabuzard mentioned this pull request Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: major
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Help-Thread created handle fails if too fast
3 participants