Bot can't reply to a message if that message gets quickly deleted #11

Open
opened 2023-08-04 03:32:40 +02:00 by Wroclaw · 2 comments
Owner

When user mentions the bot, and quickly deletes the message before the bot has a chance to reply, the bot crashes. This is also some kind of race condition.
These kind of requests should be ignored/cancelled.

When user mentions the bot, and quickly deletes the message before the bot has a chance to reply, the bot crashes. This is also some kind of race condition. These kind of requests should be ignored/cancelled.
Wroclaw added the
bug
label 2023-08-04 03:32:40 +02:00
Wroclaw changed title from Race condition: bot fails to reply if the request message gets deleted quickly to Bot can't reply to a message if that message gets deleted 2023-08-04 03:35:47 +02:00
Wroclaw changed title from Bot can't reply to a message if that message gets deleted to Bot can't reply to a message if that message gets quickly deleted 2023-08-04 03:36:07 +02:00
See [MessageReplyOptions](https://old.discordjs.dev/#/docs/discord.js/main/typedef/MessageReplyOptions)
Author
Owner

See MessageReplyOptions

I do believe that the request should be cancelled instead of being fulfilled if the message gets deleted before the request completition, so this is not a solution.
I believe that when the message by a bot gets send, it should be clearly visible who summoned the bot.
Thus the bot has to send a referenced message instead of standard message.

> See [MessageReplyOptions](https://old.discordjs.dev/#/docs/discord.js/main/typedef/MessageReplyOptions) I do believe that the request should be cancelled instead of being fulfilled if the message gets deleted before the request completition, so this is not a solution. I believe that when the message by a bot gets send, it should be clearly visible who summoned the bot. Thus the bot has to send a referenced message instead of standard message.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Wroclaw/GPTcord#11
No description provided.