Skip to content

Conversation

krittick
Copy link
Contributor

@krittick krittick commented Feb 21, 2022

Summary

This adds an optional reason kwarg to TextChannel.delete_messages, TextChannel.purge, and Message.delete, to support the X-Audit-Log-Reason header

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, typehinting, examples, ...)

@krittick krittick self-assigned this Feb 21, 2022
@rtk-rnjn
Copy link
Contributor

Make reason keyword only argument

Copy link
Contributor

@BobDotCom BobDotCom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change reason to be keyword-only

krittick and others added 4 commits April 1, 2022 15:58
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
@krittick krittick marked this pull request as ready for review April 1, 2022 23:04
@krittick krittick added status: awaiting review Awaiting review from a maintainer and removed status: in progress Work in Progess labels Apr 1, 2022
@krittick krittick added this to the v2.0 milestone Apr 1, 2022
@krittick krittick enabled auto-merge (squash) April 1, 2022 23:05
@krittick
Copy link
Contributor Author

krittick commented Apr 1, 2022

This is ready for review.

@krittick krittick merged commit a8b5916 into Pycord-Development:master Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high High Priority status: awaiting review Awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants