-
Notifications
You must be signed in to change notification settings - Fork 140
Auto edit oiriginal massage #1288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If I'm understanding correctly, I think you're describing exactly what I don't really agree with the proposal itself for a handful of reasons:
|
Well your reasoning seems fair tho i still dont understand
|
if self.response._response_type is not None: # Check if there is a response already
sender = self.followup.send # YES: use inter.followup.send
else:
sender = self.response.send_message # NO: use inter.response.send_message
await sender(...) You can do the same for editing if you want: if inter.response.type is not None:
editor = inter.followup.edit
else:
editor = inter.edit_original_response
await editor(...) If anything, we could maybe implement an |
Oh i didn't know that, then how come i was still getting InteractionResponded errors on .send? |
Are you certain you're getting them on the |
Oh wait yeah i was getting them from defer |
Summary
A parameter of InteractionBot that avoids InteractionResponded and instead edits the original message
What is the feature request for?
The core library
The Problem
It became annoying that everytime i test things i have to spend lots of time figuring out what is conflicting in my code, it is annoying.
The Ideal Solution
i would like to add a simple parameter to
InteractionBot
which avoids raising anInteractionResponded
error and insdtead it doesself._parent.edit_original_message()
.This would be useful for testing how your bot's functionality works, create small bots just to do a quick task, could also use it in bigger bots i believe it would be easier to code.
And that wouldn't, harm anyone, its just a parameter that defaults to
False
anyways.The Current Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: