Fire message edit event with updated message content after a Message Command is executed #4704
Unanswered
Headline
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
My bot allows users to compile code. Due to the amount of failed compilations, our current model allows users to edit their messages containing code and the bot will recompile and execute it.
The Problem
Using the current message command implementation pictured below, I'm able to obtain message content. Unfortunately, though (as I understand), message edits will no longer be reported to large bots. This means that I will be unable to reprocess the new input and the user will have to submit a new message and go through a lengthy process to get their desired output. As you know, the slightest of user input error into a compiler will result in a failure.
While asking the user to go through the interaction process again sounds somewhat trivial, I can assure it is quite frustrating, especially with nested options that the user may have to go through.
Possible Solution
The best solution to this problem in my opinion is to allow the message edit event to fire for commands which have had the message command interaction selected for, say, 15 minutes after the message was first sent. If it could always fire the message edit event that'd be excellent, but that's more of a nicety than a necessity.
I'm open to hearing other ideas surrounding this, thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions