Skip to content

Conversation

@Damego
Copy link
Member

@Damego Damego commented Jan 10, 2023

About

This pull request moves delete method from CommandContext to _Context to make it available for the ComponentContext.

Tip how to delete message from component interaction:

await ctx.defer(edit_origin=True)
await ctx.delete()

Checklist

  • The pre-commit code linter has been run over all edited files to ensure the code is linted.
  • I've ensured the change(s) work on 3.8.6 and higher.
  • I have added the versionadded, versionchanged and deprecated to any new or changed user-facing function I committed.

Pull-Request specification

I've made this pull request: (check all that apply)

  • For the documentation
  • To add a new feature
  • As a general enhancement
  • As a refactor of the library/the library's code
  • To fix an existing bug
  • To resolve #ISSUENUMBER

This is:

  • A breaking change

@Damego Damego added the enhancement New feature or request label Jan 14, 2023
@Damego Damego merged commit a6d93ec into interactions-py:unstable Jan 21, 2023
@Damego Damego deleted the move-delete-to-base-context branch January 21, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants