Sheldan / abstracto

Discord Bot Base
MIT License
5 stars 1 forks source link

Multiple fast initial messages cause duplicated modmail threads to be created #28

Open Sheldan opened 2 years ago

Sheldan commented 2 years ago

General Troubleshooting

Description

When the initial messages are done in a fast pace, multiple modmail threads are created. Only one thread should be created, and both messsages should be forwarded to that thread.

Steps to reproduce

Have modmail enabled Do not have a modmail thread open for a user The user sends two messages in very short periods of one another

Expected behaviour

Open one modmail thread and forward the second message normally

Actual behaviour

Two modmail threads might be opened, due to a race condition.