Skip to content
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

fix!: allow ctx.edit to edit component responses when not deferred #436

Merged
merged 5 commits into from Jan 24, 2022
Merged

Conversation

EdVraz
Copy link
Contributor

@EdVraz EdVraz commented Jan 15, 2022

This PR allows messages to be edited as a component response using ctx.edit
It also prevents message contents from being removed when editing the message

Checklist

  • I've ran pre-commit to format and lint the change(s) made.
  • I've checked to make sure the change(s) work on 3.8.6 and higher.
  • This fixes/solves an Issue.
  • I've made this pull request for/as: (check all that apply)
    • Documentation
    • Breaking change
    • New feature/enhancement
    • Bugfix

- prevent removal of message contents when editing messages

- fix editing components without deferring
@i0bs
Copy link
Contributor

i0bs commented Jan 24, 2022

Due to write access inheritance on forks of this project as the owner/maintainer, I was able to make commits fixing this. I will be merging this now.

@i0bs i0bs merged commit 50b0f15 into interactions-py:unstable Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants